Skip to content

Reason for using Mutex instead of RWMutex in querier #6048

@yun-yeo

Description

@yun-yeo

Is there any reason using just Mutex instead of RWMutex?

Query speed will be super faster with RWMutex (read lock on query and write lock on other parts),

mtx *tmsync.Mutex

If we can ensure these queries are not doing write operation, we can change them to use read lock and can support concurrent queries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions