Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate mongodb matchers into bson query to improve performance #148

Open
proxeus-dev opened this issue Mar 16, 2020 · 0 comments
Open
Labels
backend Pull requests that update Go code enhancement New feature or request

Comments

@proxeus-dev
Copy link

proxeus-dev commented Mar 16, 2020

Translate mongodb matchers into bson query to improve performance

The Select function of the mongodb implementation use matchers instead of bson queries.

Actual behaviour

The function select function in storage/dataase/db/mongo.go should use bson instead of matchers. Replace the matchers with bson. Current implementation:

func (s *MongoShim) Select(matchers ...q.Matcher) Query {
	// TODO: translate matchers into bson query to improve performance
	return &MongoQuery{matcher: q.And(matchers...), s: s}
}

See also #218

@loleg loleg added the enhancement New feature or request label Jan 21, 2021
@loleg loleg added the backend Pull requests that update Go code label Jan 5, 2022
@loleg loleg moved this to Todo in Maintenance - Q1 2024 Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Pull requests that update Go code enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants