-
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 <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
3e26c46
to
1a1703c
Compare
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
3f008bf
to
08674cc
Compare
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
0bedf43
to
cbcff58
Compare
Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com>
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 <rahuljhakumar1600@gmail.com> * triggering linting & vetting Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * added cache in querysharding pkg Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * created CacheQueryAnalyzer in querysharding pkg Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * changed type of queryAnalyzer in queryfrontend pkg Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * cache in querysharding pkg with error Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * cache in querysharding pkg with error Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * removed typos in comments in analyzer.go Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * removed typos in comments in analyzer.go Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * cached queryanalyzer Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * cached query analysis in querysharding pkg Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * changed interface name from Analyze to Analyzer in analyzer.go Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> * changed struct to interface in shard_query.go Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> Signed-off-by: Rahul Kumar Jha <rahuljhakumar1600@gmail.com> Signed-off-by: utukj <utukphd@gmail.com>
Signed-off-by: Rahul Kumar Jha rahuljhakumar1600@gmail.com
Changes
Added a LRU cache in analyzer.go which is in querysharding pkg.
#5715