This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
deta base storage size #524
Unanswered
TAMILVIP007
asked this question in
Help
Replies: 1 comment
-
There is no counter in the UI, but you can write a little script to download all the data and save it to a JSON. The file size would give you a general approximation of the Base's size. import json
from deta import Deta
deta = Deta()
db = deta.Base("mydb")
response = db.fetch()
all_items = response.items
while response.last:
response = db.fetch(last=response.last)
all_items.extend(response.items)
with open("mydb.json", "w") as file:
json.dump(all_items, file) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is it possible to know about current deta base size which i've stored data?
Beta Was this translation helpful? Give feedback.
All reactions