Skip to content

Dynamodb table schema #691

Closed Answered by JWCook
Shir-Avr asked this question in Q&A
Sep 19, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks for bringing this up. The short answer is that you're correct; the cache key is currently used as the range key, but would be better as the partition key.

The longer answer is that there is a second namespace, redirects, which optimizes redirect chains by mapping the cache key of the initial request to the cache key of the final request in the chain. Other backends use a separate table to store this redirect info, but the DynamoDB backend uses a single table with two different "namespaces" (partition key values). That was done in the initial implementation here before I came on board as maintainer, and I did not want to break backwards-compatibility.

However, since the 1.0 release …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JWCook
Comment options

Answer selected by Shir-Avr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
performance backends Features or changes related to specific backends
2 participants