How to fast queries
#2

Depends on how your queries are structured. If you have queries like this:
Код:
SELECT * FROM Table1;
foreach($result as $row) {
  SELECT * FROM Table2 WHERE ID = $row->table2_id;
}
Then yes, you can simplify it. If however your queries are just this:

UPDATE Player SET var1, var2, var3

then no, you cannot change the amount unless you make your method collect data on all players and in some way dump all information into your database at once, which can create some faults as some players data may not be saved.
Reply


Messages In This Thread
How to fast queries - by Banditukas - 04.08.2014, 08:31
Re: How to fast queries - by mamorunl - 04.08.2014, 11:35
Re: How to fast queries - by Mauzen - 04.08.2014, 11:48
Re: How to fast queries - by Banditukas - 04.08.2014, 12:01

Forum Jump:


Users browsing this thread: 1 Guest(s)