Is there a way to randomise a query from from a collection of posts or products. So that each query is different. Just like top e commerce sites like temu, aliexpress, each time you refresh the recommended products are not the same and in different order
TL;DR
Developers want to know how to randomize queries from a collection of posts or products so that each query is different, similar to top e-commerce sites like Temu and AliExpress. This way, each time a user refreshes the recommended products, they will see a new order.
Solution: Implement a random function in the query to shuffle the results each time the query is run.Recommended threads
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console