Skip to content

Storing pictures and other files (feat. encryption) #3614

Answered by nirinchev
tschbc asked this question in Q&A
Discussion options

You must be logged in to vote

Gotcha, we're still in the design phase of this project, so not sure how exactly that'll look like for the local database, but we'll use the input here in our considerations.

In terms of the original questions, we generally recommend storing outside of the file as having large blobs will slow things down. Realm files are memory-mapped and we'll need to load more data into memory as there's no way to distinguish between binary and structured data since they are interwoven with one another. There's no cutoff for when performance becomes terrible and instead, the larger the file becomes, the worse performance is. It gets really bad if the files become larger than what can fit into memory, be…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@tschbc
Comment options

@nirinchev
Comment options

Answer selected by tschbc
@tschbc
Comment options

Comment options

You must be logged in to vote
1 reply
@tschbc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants