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

perf: add cache in db layer #59

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Conversation

codebender37
Copy link
Collaborator

No description provided.

@codebender37 codebender37 reopened this Nov 28, 2024
@codebender37 codebender37 marked this pull request as draft November 28, 2024 18:28
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
Copy link
Collaborator

@karootplx karootplx Nov 29, 2024

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

Copy link
Collaborator Author

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

pkg/cache/cache.go Outdated Show resolved Hide resolved
pkg/cache/cache.go Outdated Show resolved Hide resolved
pkg/orm/dojo_worker.go Outdated Show resolved Hide resolved
pkg/orm/dojo_worker.go Outdated Show resolved Hide resolved
pkg/orm/task.go Outdated Show resolved Hide resolved
pkg/orm/task.go Outdated Show resolved Hide resolved
@codebender37 codebender37 force-pushed the perf/add-cache-in-db-layer branch from 387d155 to c5a1a41 Compare December 2, 2024 02:24
@jarvis8x7b jarvis8x7b changed the title Perf: add cache in db layer perf: add cache in db layer Dec 2, 2024
jarvis8x7b
jarvis8x7b previously approved these changes Dec 2, 2024
@codebender37 codebender37 force-pushed the perf/add-cache-in-db-layer branch from c5a1a41 to 1f0100b Compare December 2, 2024 11:22
@codebender37 codebender37 marked this pull request as ready for review December 2, 2024 14:40
@codebender37 codebender37 merged commit 2bf5131 into dev Dec 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants