rehacktive / waspdb

key/value data storage library for Android, pure java and encrypted
Apache License 2.0
226 stars 22 forks source link

Unable to store large files #15

Open 0Franky opened 4 years ago

0Franky commented 4 years ago

I've I noticed that the maximum size of an object that can be stored inside the db is 70768 [NB: this size is acquired by the serialization of the object. It may not correspond to the actual size.]

rehacktive commented 4 years ago

it's done for storing java objects, like models/pojo. I'd suggest something else for bigger content/files.

0Franky commented 4 years ago

Can the problem be solved by a serialization on the disk? One file (crypted) for each dataset or object? In this way the storage limit is only about space disk, and it can be has a direct access to the file/object.

rehacktive commented 4 years ago

everything is serialized to disk. but again, each 'page' has a limit.

Hatzen commented 4 years ago

Do we have actual numbers on how much data can be stored within a single hash? Im using plain pojos to store encrypted messages which can be huge and are nested within an array of users.