Skip to content

FlyBase: speed up resolve_entity broad search and apply statement tim… - #129

Open
Clare72 wants to merge 2 commits into
mainfrom
fix/flybase-broad-search-timeout
Open

Clare72 wants to merge 2 commits into
mainfrom
fix/flybase-broad-search-timeout

Conversation

@Clare72

@Clare72 Clare72 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

…eouts

resolve_entity's broad '%name%' search filtered feature types via a join on cvterm.name, so Postgres scanned all ~98M feature rows: ~95s for a name with no match, beyond chado.flybase.org's 120s limit on CI. Look up the type ids first and filter on the type_id index instead (~1s, same results).

get_connection passed statement_timeout as a startup option, which the server ignores (sessions kept the chado_public role's 120s). Apply it with set_config after connecting, and commit so a rollback can't revert it.

Clare72 and others added 2 commits October 23, 2026 15:08
…eouts

resolve_entity's broad '%name%' search filtered feature types via a join on
cvterm.name, so Postgres scanned all ~98M feature rows: ~95s for a name with
no match, beyond chado.flybase.org's 120s limit on CI. Look up the type ids
first and filter on the type_id index instead (~1s, same results).

get_connection passed statement_timeout as a startup option, which the
server ignores (sessions kept the chado_public role's 120s). Apply it with
set_config after connecting, and commit so a rollback can't revert it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant