MySQL R39 LAG
#4

Vince mentioned exactly what you should do:

Quote:
Originally Posted by Vince
Посмотреть сообщение
That's why pagination was invented.
Instead of loading all the rows at once, you do it in parts. To achieve this, you spread the amount of rows loaded at once over an x amount of pages. The pro of doing it this way is that instead of loading all the rows at once, you have to load the amount of rows that fit on the page.

An example:
13,000 rows. Let us say that you can fit 20 rows on one page. 13,000/20 = 650 pages of data. For the first page you load the first 20 rows in the database. When the player goes to the second page you load another 20 rows and so forth.

EDIT: alternatively you could only load in the rows of the players that have been active in the timespan of a month or two months to lower the amount of rows that you should load.
Reply


Messages In This Thread
MySQL R39 LAG - by Type-R - 16.03.2016, 20:37
Re: MySQL R39 LAG - by Vince - 16.03.2016, 20:44
Re: MySQL R39 LAG - by Type-R - 16.03.2016, 20:56
Re: MySQL R39 LAG - by AndySedeyn - 16.03.2016, 21:15
Re: MySQL R39 LAG - by Type-R - 16.03.2016, 22:04
Re: MySQL R39 LAG - by AmigaBlizzard - 17.03.2016, 09:51

Forum Jump:


Users browsing this thread: 1 Guest(s)