Limit Account?
#2

Hmm, your datamodel is questionable at best. 'Leader' should be an attribute of Faction, not an attribute of Player. As a quick patch you can put an index on that 'leader' column to speed up table lookups, but in the long term you should probably restructure the datamodel.

Also run an explain query (within phpMyAdmin or other client) and put the output here:
PHP код:
EXPLAIN SELECT userIDLastLogin FROM `playersWHERE `Leader` = '1' 
If it says something like "table scan" or indicates the possible keys as NULL then that's bad.
Reply


Messages In This Thread
Limit Account? - by norton2 - 03.11.2015, 18:01
Re: Limit Account? - by Vince - 03.11.2015, 18:22
Re: Limit Account? - by norton2 - 04.11.2015, 13:24
Re: Limit Account? - by norton2 - 04.11.2015, 13:26
Re: Limit Account? - by Vince - 04.11.2015, 15:32
Re: Limit Account? - by norton2 - 04.11.2015, 17:58
Re: Limit Account? - by norton2 - 05.11.2015, 15:36
Re: Limit Account? - by Vince - 05.11.2015, 21:31
Re: Limit Account? - by norton2 - 06.11.2015, 14:10
Re: Limit Account? - by norton2 - 07.11.2015, 10:27

Forum Jump:


Users browsing this thread: 2 Guest(s)