Previous Thread
Next Thread
Print Thread
Rate Thread
#271801 04/01/2004 2:18 PM
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
I received this email from my host about a query, anyone know what it is or if it can be indexed?

----------------------------------
Hello Steve,

You might want to index this query, I found it in your slow mysql log:

It's happening quite often, but it looks like it's probably the only bad & often query.

# Query_time: 0 Lock_time: 0 Rows_sent: 0 Rows_examined: 12348

SELECT t2.U_Language,t2.U_Email,t2.U_EmailFormat
FROM w3t_Favorites AS t1,
w3t_Users AS t2
WHERE t1.F_Thread = '1039880'
AND t1.F_Type = 'f'
AND t1.F_Owner = t2.U_Number
AND t2.U_EReplies = 'On'
;

Sponsored Links
bisbell #271802 04/01/2004 6:59 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Looks like it's searching to see if a thread is in someone's favorites. Like if a reply is made to their favorite thread - it'll check the favorites table and email those people.

Daine #271803 04/01/2004 9:14 PM
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Thanks, I figured you might know what it was, might be something to look at query wise I guess for 6.5, I dunno?

bisbell #271804 04/02/2004 8:50 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Thanks for posting this! Looks like we're missing a key index on that table so when a post is added it can take a little longer than it should when users have alot of favorites. I'm adding this in for the 6.5 release.


UBB.threads Developer
Sally #271805 04/04/2004 10:46 AM
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)