Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.62k stars 600 forks source link

File upload #1703

Closed dungeon2567 closed 6 months ago

dungeon2567 commented 1 year ago

Can i use watermelon db with file fields and handle upload on background then swap that with file url?

lucaswitch commented 11 months ago

Maybe you should store only the minimal data on the column to get those files, insert it on the database maybe is the worst option and can slow down your "selection of data" in the database and slow down your first sync. Maybe store like:

row.file_id = '12345678' so that file could be fetched and cached once needed.