02-18-2014, 08:32 PM
|
#18
|
nanodesu~
Join Date: Jan 2013
Location: Ontario, Canada
Posts: 503
|
Re: Website/database question
Quote:
Originally Posted by Reincarnate
What's the smart way to do this? When you say it's a "separate level" in the database, do you mean a separate table? Like Level1 table, Level2 table, etc.
I thought having lots of small queries was technically a good thing with respect to datatable normalization?
|
The smart way is to not do this, just have one single table, and set up an index on the levelid/whatever to allow queries to work as well as if they were in separate tables, without the retardedness that comes with actually using separate tables.
Quote:
Originally Posted by Izzy
Maybe you could do some kind of massive join of all the levels tables and then query it all at once.
|
This won't improve anything due to the lack of an index on the element you're querying (in levelranks case, userid). It would probably also max out memory usage and fail anyway.
__________________
FMO AAAs (1): Within Life :: FGO AAAs (1): Einstein-Rosen Bridge
Last edited by arcnmx; 02-18-2014 at 08:38 PM..
|
|
|