I have a marketplace with many sellers selling the same 3 products in
various values. In all the are 18 product type for sell on the platform
with hundreds of sellers.

I was randomizing the product category page when loaded so that items from
all sellers could appear on the page.

I was not using paginations and I have thousands of products so the page
was obviously loading very slow.

I added pagination and let python manage the query instead of it happening
on the server-side. This increased the page load but I lost my
randomization.

The first page is the only page getting random items loaded. When using
pagination to get to the 2nd page the items loading on that page are
descending oldest to newest.

Does anyone have an idea how to manage randomizing items on each new page?

I am django core paginator

https://docs.djangoproject.com/en/3.0/ref/paginator/

Any ideas would be appreciated

Cheers,

John

-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-hv_qyzZQdCXJBRs_a-3MEt46%3DsOtXvknNuEVBzWNZ_bk5Xg%40mail.gmail.com.

Reply via email to