Local Only Mode #883
Replies: 8 comments 2 replies
-
Hi @MentalGear, I will let @thruflo answer your pgvector question as he has a better viewpoint on our roadmap. |
Beta Was this translation helpful? Give feedback.
-
Hey, how would you like to use pgvector? |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back, I appreciate it! Local-Mode As I think about it, it'd be great if you had a page on the docs for this kind of "local-mode starter setup". Local Storage Considerations pg_vector |
Beta Was this translation helpful? Give feedback.
-
The app will run in local-mode if it fails to reach Electric (i.e. the server).
SQLite stores the DB as a single file on disk, so you are bound by the maximum file size. For Electric apps running in the browser, we currently use wa-sqlite and configured it to use IndexedDB as the virtual file system. Storage limits for IndexedDB are browser-specific and are described here: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria#Storage_limits |
Beta Was this translation helpful? Give feedback.
-
There's some devil in the detail here relating to type mapping, autogenerated queries etc. So you can't just swap in a VM-based WASM PG. However, we have been working on this, or more specifically @balegas and @tachyonicbytes have been working on this, in a slightly different configuration. We have a public #wasm-and-rust channel on the Discord if you'd like to say hi there / discuss more. |
Beta Was this translation helpful? Give feedback.
-
any movement on this? thanks |
Beta Was this translation helpful? Give feedback.
-
a precision tho, |
Beta Was this translation helpful? Give feedback.
-
👋 we've been working the last month on a rebuild of the Electric server over at a temporary repo https://github.com/electric-sql/electric-next/ You can read more about why we made the decision at https://next.electric-sql.com/about We're really excited about all the new possibilities the new server brings and we hope you'll check it out soon and give us your feedback. We're now moving the temporary repo back here. As part of that migration we're closing all the old issues, PRs, and discussions. We really appreciate you taking the time to start this discussion! If it's still relevant in the new system, please reopen. |
Beta Was this translation helpful? Give feedback.
-
First of all: Very impressive work, looking forward to add this into our techstack. Thank you!
I'm currently building a small browser extension and, before I add any remote server sync/storage, I'd like to start small and only save data locally. Is it possible to use electric without a server pg backend - so it runs completely local ?
PS: would it also be possible to use pgvector with electric?
Beta Was this translation helpful? Give feedback.
All reactions