News for hackers. Stuff that matters.
Re:Creating an advanced search engine with PostgreSQL by f4c39012 on Thursday July 13, 2023 @01:30PM (#36712883)
Perhaps include a "last modified" timestamp w/ timezone in tables of interest, PG can update this on a trigger so no app code has to change. Index this field. Then build a view on top of the relevant tables that assembles the document for ES. Include in the view a field which contains the most recent of all the "last modified" dates, and filter the view on that timestamp?

There are no comments on this comment yet.