Jump to content

Get data records in blocks


budimir

Recommended Posts

Guys,

 

I'need help.

 

How can I get data records from DB in blocks (of about 100 pcs at one block). I have large table with 100.000+ rows in Db, but it's taking a lot of time to get that data.

 

My idea is to get 100 rows and than click on a button and than get another 100 rows.

 

I have implemented paging but it's still to slow.

 

Any ideas?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/289731-get-data-records-in-blocks/
Share on other sites

It would be helpful to see the logic you are using to get a page of records and output it to the page (including the queries). It could be you are running queries in loops, the query you are using is inefficient, or you need to add indexes on specific fields used in the query. (or a combination of the three).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.