[Question] Does Powersync store all my database data and history change on Mongodb or Powersync internal storage? #294
-
| 
         hi Powersync team,  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
| 
         hi @rkistner , maybe you can answer that. Sorry for a lots of questions, but i'm heavily investigate on Powersync to decide what techstack should our team will use in the next project.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         We store the history of changes in MongoDB. That is re-computed from the source database whenever you deploy sync rule changes. You can see the code for that here: https://github.com/powersync-ja/powersync-service, and a diagram with the architecture for self-hosting is here: https://docs.powersync.com/self-hosting/installation Our discord is also great for questions like this.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         FYI, Postgres can now also be used as alternative to MongoDB for storing the "bucket data" (history of changes) https://releases.powersync.com/announcements/introducing-postgres-for-sync-bucket-storage  | 
  
Beta Was this translation helpful? Give feedback.
We store the history of changes in MongoDB. That is re-computed from the source database whenever you deploy sync rule changes.
You can see the code for that here: https://github.com/powersync-ja/powersync-service, and a diagram with the architecture for self-hosting is here: https://docs.powersync.com/self-hosting/installation
Our discord is also great for questions like this.