Re: Using django pagination or slicing

2016-10-31 Thread ADEWALE ADISA
Thanks fedowag. On Oct 31, 2016 12:01 PM, "王安刚" wrote: > hi > i prefer method 2 > > you can get all the list from db and store it in redis using zadd > each time an ajax request comes, you get the data you need using zrange > > > 在 2016年10月31日星期一 UTC+8上午9:05:07,ADEWALE

Re: Using django pagination or slicing

2016-10-31 Thread ADEWALE ADISA
Thanks very much Ludovic for the advice. On Oct 31, 2016 9:53 AM, "ludovic coues" wrote: > I would use 1 + 2 from your list. > > 3 might work on 1000 record, depending on how much data there is per > record. But if you grow to more than 10,000 record, the page loading > can

Re: Using django pagination or slicing

2016-10-31 Thread 王安刚
hi i prefer method 2 you can get all the list from db and store it in redis using zadd each time an ajax request comes, you get the data you need using zrange 在 2016年10月31日星期一 UTC+8上午9:05:07,ADEWALE ADISA写道: > > Hello, > Please I need an advice on the best approach to take on the following >

Re: Using django pagination or slicing

2016-10-31 Thread ludovic coues
I would use 1 + 2 from your list. 3 might work on 1000 record, depending on how much data there is per record. But if you grow to more than 10,000 record, the page loading can take minutes. I have experienced that issue with two different project. Django pagination by itself won't give you the

Using django pagination or slicing

2016-10-30 Thread ADEWALE ADISA
Hello, Please I need an advice on the best approach to take on the following issues. I have a database table consist of about 1000 record. I need to be displaying like 20 records at a time on a page such that when the user scroll the browser another batches will be append to the browser. Below are