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
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...
- Python Function not working
I am getting this issue as well. Doesnt look like there was a solution as you guys were not able to replicate. Below is my code as well as the error. I started...
- Migration Help
I have a small project which I have started using Appwrite cloud and now I want to self host Appwrite and migrate the data. I'm getting this error everytime I ...