FitzLiveViews Builds Server-Driven Employee DataGrid With Live Postgres Queries
A developer building the Admin flagship app for the FitzLiveViews series has created a fully server-driven employee data grid that executes a real SQL query against a Postgres database on every user interaction, including searches, filter changes, sorts, and page turns. The grid uses the Fitz ORM to dynamically construct queries with chained WHERE clauses, a dynamic ORDER BY, and LIMIT/OFFSET pagination, with no in-memory filtering on the client side. Each browser connection maintains its own independent grid state — covering search term, filters, sort order, and page — so multiple users can filter simultaneously without interference. Updates are delivered over a WebSocket using an HTML diff-patch mechanism, while server-side rendering ensures the initial page load is instant and crawlable. The implementation requires no React, no REST API endpoints, and no client-side state management, with the full working example available via a public repository.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in