Ask coding questions

← Back to all posts
Replit DB
h
QuantumCodes

Limitations:

50 MB per database (sum of keys and values)
5,000 keys per database
1000 bytes per key
5 MB per value

I dont quite understand some things...

5MB per value with 5000 key value pairs
So.. 5MB × 5000 = 25000MB ?!?!
what about 50MB per database limit? (@vulcanWM answered this as a no)

If this means that if i have 10 keys of 5MB, database is full, then if i use 1 byte per value, the i can have >5000 key-value pairs???(unanswered)

And how much data is 5mb? I want some comparison to json (unanswered)

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
QuantumCodes
Comments
hotnewtop
Coder100

Please do read the docs:

  1. as you can see, if you all values had 5MB you could only have 10 keys because of (1).
  2. no because it literally says you can only have 5000 keys and hold up to 5000kb only
  3. compare to json? json storage is counted in terms of mb just the same as replit db data is compared in terms of mb. bytes are characters, and I would think json is very inefficient in terms of storage. Perhaps you need to rethink that question.
QuantumCodes

@Coder100 thanks!

ch1ck3n

{"yes": "no"} is 0.000013 megabytes or mb

QuantumCodes

@ch1ck3n ok lol xD thanks !

VulcanWM

It says that the max capacity of a key is 5MB
Not that each key is 5MB

QuantumCodes

@VulcanWM if i fill each with 5mb

VulcanWM

then yeah you can only have 10 keys @QuantumCodes

QuantumCodes

@VulcanWM for below questions?

QuantumCodes

@VulcanWM pls answer other questions of mine??

VulcanWM

I don’t know the answer to that @QuantumCodes

QuantumCodes