Urgent.News

What's breaking now, across thousands of outlets.

Tech

LioranDB TypeScript Series #5: Cursors, Query Shaping and Full-Text Search

LioranDB TypeScript Series #5: Cursors, Query Shaping and Full-Text Search LioranDB TypeScript Series: Build with a developer-first document database powered by Rust and designed for TypeScript. Calling find() doesn't simply give you an array. It gives you a FindCursor . That distinction becomes useful as queries grow. Building a query const cursor = users . find ({ active : true }) . sort ({…

LioranDB TypeScript Series #5 focuses on Cursors, Query Shaping, and Full-Text Search in the developer-first document database powered by Rust and designed for TypeScript. Once a query is executed, FindCursor methods cannot modify the cursor definition; instead, a clone should be used for any variations. Text search is implemented via a text index, which can then be queried using a $text operator.

The FindCursor is designed for incremental consumption of query results, while AggregationCursor materializes its result set on its initial load, which should be considered for large analytical workloads. Execution methods of cursors can work with an AbortSignal for application-level cancellation.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

More from Saturday 15 August →