Implementing Relay Cursors on Typesense Results
TLDR Dan struggled with implementing relay cursors on typesense result. Kishore Nallan and Mac discussed how to navigate this, eventually deciding to implement offset/limit-based pagination.
2
1
Apr 29, 2022 (20 months ago)
Dan
10:52 AMThis does not correlate very well to pages - was wondering if it’d be possible to add options to support this? ie, from offset X, return Y results (backwards and forwards).
Kishore Nallan
10:57 AMoffset = (page - 1) * per_page
So for page 1, offset will begin with zero. The number of results to take from that position will be equal to per_page.
Dan
10:59 AMDan
11:00 AMDan
11:01 AMKishore Nallan
11:02 AMDan
11:03 AMDan
11:03 AMKishore Nallan
11:03 AMKishore Nallan
11:04 AMoffset, limit
convention.1
Dan
11:04 AMKishore Nallan
11:05 AMDan
11:08 AMDan
11:09 AMDan
11:09 AMKishore Nallan
11:10 AMApr 30, 2022 (20 months ago)
Mac
12:53 AMMac
12:54 AMMac
12:54 AMMac
12:57 AMDan
10:40 AMDan
10:40 AMMac
05:14 PMMac
05:16 PM1
May 04, 2022 (20 months ago)
Kishore Nallan
01:44 AM1
Typesense
Indexed 3005 threads (79% resolved)
Similar Threads
Database Management and Personalized Search Queries Discussion
Alexander posed several database and search-related questions. Mac suggested considering GraphQL, considering performance and high availability needs, and leveraging Cloudflare workers. Kishore Nallan provided insights on the capabilities of Typesense and discussed the idea of search personalization using machine learning.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.
Typesense Pagination and Expensive Querying Concerns
Michal inquired about cursor pagination and caching in Typesense. Kishore Nallan provided reasons for their absence and discussed improvements for range filter performance in the next release.
Fetching All Docs from a Collection in Typesense
Julian asked if all docs could be fetched from a Typesense collection, and Kishore Nallan explained there's a 250 result limit due to performance considerations. Andrew suggested using the export function, explaining their operations and performance.
Revisiting Typesense for Efficient DB Indexing and Querying
kopach experienced slow indexing and crashes with Typesense. The community suggested to use batch import and check the server's resources. Improvements were made but additional support was needed for special characters and multi-search queries.