mysql - Large PHP Arrays pagination -


i have array has on 10k results (generated mysql query) , wonder best practice paginate it? extract data first split pages or there faster/best way?

use mysql's limit syntax retrieve desired results database before reaches php code.

something this:

$offset = 0; $per_page = 25;  $query = "select * `blah` limit $offset, $per_page";  ... 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -