[FEAT]: Deno + Hono full text search app - #19
Open
Nikhiladiga wants to merge 2 commits into
Open
Conversation
…esense Adds a standalone sample matching the API surface of the other backend samples: PostgreSQL is the source of truth and Typesense is a derived index, kept current by real-time mirroring on write plus a background reconcile every 60 seconds. Queries are hand-written with postgres.js rather than an ORM, since the repo already covers Prisma, Sequelize and Drizzle. updated_at is maintained by a database trigger so changes made outside the API are still picked up. The incremental sync avoids three ways of losing rows silently. The last sync time is read before the work rather than after, so rows edited mid-run are not skipped. It only advances when the whole run succeeded, so a partial failure is retried instead of dropped. And startup recovery starts from epoch rather than from MAX(updated_at), which would never match any row. The timestamp comes from PostgreSQL so clock skew cannot open a gap, and per-document import results are inspected rather than assumed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
PR Checklist