Skip to content

Using privileges from view is slow when adding multiple external sources #144

@giovanniborella

Description

@giovanniborella

$sql = "SELECT * FROM settings.geometry_columns_view WHERE _key_ LIKE :schema";

we have currently changes to this instead:
$sql = "SELECT privileges FROM settings.geometry_columns_join WHERE _key_ = :schema"; which cuts the query time dramatically.

our working theory is, that the view is slowed down when accessing sourced that were define ie. as FT. the code block only uses privileges field. before this, we successfully sped up the query by setting random_page_cost to 1 (from default 4), to make sure indexes were used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions