This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bulk-invalidate e2e cached queries after claiming keys #16613
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
190b50a
Remove stale comment
b1ca34f
simple_insert_many's keys should be a sequence
171d705
Impl bulk-invalidating caches over replication
c6f2a8f
Add get_next_mult_txn.
clokep 307c77a
Mark multiple IDs as finished.
clokep d9b7d08
Helpful implementation note!!
f6ee91c
dummy test case
9e72bf4
Commit to them being tuples
be349f2
Changelog
91a48af
lint
35938df
Fixup 307c77abead5210518622100c5e9a4c24a9a11e5
69b539e
Remove guff from the non-worker test
4899623
Fix var name
e3a6358
Use set.update instead of a loop over set.add
b95d361
Tweak changelog
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Remove stale comment
Missed in #7436
- Loading branch information
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we update the non-bulk versions of these to actually require tuples?
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.
I was wondering if we should actually be requiring List[str], since the
keys
column is[]text
. It'd save a conversion tuple->list here and there? 🤷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.
I think tuples are used though because they're immutable so is what is used in the cache keys?
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.
ahh, that makes sense!
I'd be in favour of specifying
Tuple[str, ...]
, but in another PR.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.
Do they have to be strings? I'd be kind of surprised if we don't have other types in there?
Anyway, yes sounds like a different PR.