Skip to content

How does similarity filter interact with fine-grain SIREAD locks? #458

@mqudsi

Description

@mqudsi

Hello,

Thanks again for this wonderful product and the hard work you've put into it.

Do similarity filters restrict the range of records for SIREAD locks? i.e. when in a SERIALIZABLE transaction and issuing a query with a similarity filter condition (e.g. SELECT FROM vectors WHERE centroid <<#>> sphere($1::halfvec, $2)), can pgsql restrict the concurrency checks to the range of rows that fell within the $2 search radius for fine-grained locking or is the entire table marked for SIREAD locks? Do any inserts into vectors during this transaction cause the serializable query to fail or only those that fell into the search radius?

I'm guessing fine-grained locking isn't implemented, but it would be amazing if it were! Is this on the roadmap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions