Sorting options for /blog endpoint
opened this issue · comments
Is there a way to change the order of the videos on the channel page when viewing it publicly? I notice that the videos are posted in the order of the posted date. I have videos that are from YouTube that are older than my newest videos, but are in front.
Content sorting options will have to be added to the Avalon API for this
Great. Is there instructions somewhere that will show me how to do so?
Avalon isn't really designed to achieve this. Better using the ElasticSearch for it instead, it will be much more efficient.
If attempted, it would require too many indexes on the collections to have respectable speed at scale.
@skzap well, we can use the power of mongodb "find" function. Working on a solution... we will see.
However, I haven't monitored memory complexity of these filtering on mongodb.. my node never crashed. But depending on the complexity of filter, that may be an issue.. Adding limit may be an workaround. I will test and see.
Check #87