FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(postgres): browse on read-only; page with ORDER BY PK; do not block on COUNT(*) · Issue #788 · QueryaHub/Querya-Desktop · GitHub

fix(postgres): browse on read-only; page with ORDER BY PK; do not block on COUNT(*) #788

Description

Summary

Table Browser _connectAndLoad always acquires readWrite (“for custom SQL and REFRESH”). Browse SELECT * … LIMIT n OFFSET m has no ORDER BY, so pages skip/duplicate. COUNT(*) is a sequential scan on large heaps and shares the 30s queryTimeout that forceCloses the pooled socket.

Scope

  • Default browse session: PgSessionMode.readOnly (Save / REFRESH / custom SQL may upgrade — see shared-socket issue).
  • When a PK exists, ORDER BY those columns for stable pages.
  • Do not require a blocking COUNT(*) before first paint: estimate (reltuples) or count asynchronously; timeout must not kill the browse socket.

Out of scope

  • Changing default page size (200).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend database driver execution and queriesbugSomething isn't workingdata-gridInteractive data grid, cell editor, filtering, groupingsperformanceTheme parser epic label: performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL