-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
created lru cache in querysharding pkg #5749
Conversation
pkg/querysharding/analyzer_test.go
Outdated
for _, v := range value { | ||
b.Run(fmt.Sprintf("query: %s", v.name), func(b *testing.B) { | ||
for i := 0; i < b.N; i++ { | ||
analyze.Analyze(v.expression) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errcheck: Error return value of analyze.Analyze
is not checked
ℹ️ Learn about @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
3e26c46
to
1a1703c
Compare
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
Signed-off-by: Rahul Kumar Jha <[email protected]>
3f008bf
to
08674cc
Compare
Signed-off-by: Rahul Kumar Jha <[email protected]>
0bedf43
to
cbcff58
Compare
Signed-off-by: Rahul Kumar Jha <[email protected]>
5da6afa
to
eb62727
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution
* created lru cache in querysharding pkg Signed-off-by: Rahul Kumar Jha <[email protected]> * triggering linting & vetting Signed-off-by: Rahul Kumar Jha <[email protected]> * added cache in querysharding pkg Signed-off-by: Rahul Kumar Jha <[email protected]> * created CacheQueryAnalyzer in querysharding pkg Signed-off-by: Rahul Kumar Jha <[email protected]> * changed type of queryAnalyzer in queryfrontend pkg Signed-off-by: Rahul Kumar Jha <[email protected]> * cache in querysharding pkg with error Signed-off-by: Rahul Kumar Jha <[email protected]> * cache in querysharding pkg with error Signed-off-by: Rahul Kumar Jha <[email protected]> * removed typos in comments in analyzer.go Signed-off-by: Rahul Kumar Jha <[email protected]> * removed typos in comments in analyzer.go Signed-off-by: Rahul Kumar Jha <[email protected]> * cached queryanalyzer Signed-off-by: Rahul Kumar Jha <[email protected]> * cached query analysis in querysharding pkg Signed-off-by: Rahul Kumar Jha <[email protected]> * changed interface name from Analyze to Analyzer in analyzer.go Signed-off-by: Rahul Kumar Jha <[email protected]> * changed struct to interface in shard_query.go Signed-off-by: Rahul Kumar Jha <[email protected]> Signed-off-by: Rahul Kumar Jha <[email protected]> Signed-off-by: utukj <[email protected]>
Signed-off-by: Rahul Kumar Jha [email protected]
Changes
Added a LRU cache in analyzer.go which is in querysharding pkg.
#5715