-
Notifications
You must be signed in to change notification settings - Fork 0
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
perf: add cache in db layer #59
Conversation
pkg/orm/task.go
Outdated
if len(tc.types) > 0 { | ||
typeStrs := make([]string, len(tc.types)) | ||
for i, t := range tc.types { | ||
typeStrs[i] = string(t)[0:2] // Take first 2 chars of each type |
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.
what happens if we have task type text_to_image and text_to_three_d? will be hard to differentiate between them right
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.
yep, probably better use the whole string to be safe
387d155
to
c5a1a41
Compare
c5a1a41
to
1f0100b
Compare
No description provided.