#community-help

Typesense Pagination Query

TLDR Mojan asked about cursor-based pagination in Typesense due to timeout errors in their large dataset. Jason requested more context about the issue.

Powered by Struct AI
Sep 20, 2023 (2 months ago)
Mojan
Photo of md5-813f8f14e16940e952eb3fe25d0c4523
Mojan
05:28 PM
Hey guys,
Hope you are doing well.
I am using pagination for our search engine . Was reading this feed :

https://github.com/typesense/typesense/issues/591

One problem we are facing right now is that our dataset is quite large and for a given search query , like "test", it can go up to 460 pages and during the process a 504 (timeout error) is thrown. I am wondering if Typesense has a cursor-based pagination implemented within it at all and if not , was wondering what your thoughts are .

Cheers
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:53 PM
Could you elaborate on your use-case, just so I have context? Are your end-users clicking through and browsing 460 pages of results?