Meteor-Community-Packages / ground-db

GroundDB is a thin layer providing Meteor offline database and methods
https://atmospherejs.com/ground/db
MIT License
572 stars 77 forks source link

GroundDB on Meteor Unable to handle file size >= 5MB #197

Closed summer0nguyen closed 4 weeks ago

summer0nguyen commented 7 years ago

Hello, I'm using GroundDB for my Meteor project. Everything works fine with small data .

The problem occurs when I upload a file with size >= 5MB in an object with a base64 field , something like : image

This object disappears without any notification .

I think that It was caused by Storage Limit 5MB . I found that GroundDB also supports indexDB which is stored in temporary storage that can be increased .

Could you tell me how can I use IndexDB for this purpose. Thank you

raix commented 7 years ago

using v2 it should actually select the best storage possible on the client - you can inspect the storage in devtools ressources. You might also be able to inspect the storage entity on a ground db instance to see what type of storage it's using. (on cordova I tried to have it use sqlite but the plugin did not work accordingly)

summer0nguyen commented 7 years ago

Dear @raix , Thank you for your reply.

Acording to : https://atmospherejs.com/ground/db ,

image

What do you mean v2 means in these above versions :D I installed the latest one : 0.3.15 but it doesn't work either :( Thank you

raix commented 7 years ago

you can fix the version to 2.0.0-rc.7 thats the latest - but it's different from 0.3 in several ways (hopefully for the better - I'll see if I get some time soon to get it out of rc)

summer0nguyen commented 7 years ago

Dear @raix , I appreciated your work .