-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add scalar storage support for DynamoDB
This change allows GPTCache to use DynamoDB as the underlying scalar storage for the cache. The underlying implementation uses 2 tables: - `gptcache_questions` - which holds all questions and session information. - `gptcache_reports` - which holds the reporting information. Normally, we would do a single table design and rollup `gptcache_reports` into the same table as `gptcache_questions`. However, this was not done for one key reason: billing. In the event a lot of analytics data is being created, then table scans for operations like `count()` and `get_ids()` would also involve reading these reporting rows before filtering them out, resulting in higher read costs for end users of GPTCache. Signed-off-by: Gautham Chandra <gautham.chandra@live.com>
- Loading branch information
1 parent
651a411
commit 35d8704
Showing
7 changed files
with
945 additions
and
0 deletions.
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
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
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
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
Oops, something went wrong.