-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Having limits on the amount of data that users can store is obviously useful so users can pay for what they use up to a certain point, restricting abusive users, etc. By default we don't have a limit unless a user is given a specific one, which is done by adding it to a table. Once we get some more billing work done, we could have big_central hit the internal API We also started counting file_metadata in chunk usage. The reason for this is to prevent abuse. Any user can upload any data into file_metadata, so ensuring that we check limits there is ideal. Once we change chunk_metadata to encrypt some of the data, we should also count that. In reality, this is a KB at *most* per file, so this isn't an issue for non-abusive users
- Loading branch information
Showing
4 changed files
with
122 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CREATE TABLE storage_caps( | ||
user_id bigint PRIMARY KEY, | ||
max_bytes bigint NOT NULL | ||
) |
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