how to save to database in optimal way? #4251
Unanswered
terlan4
asked this question in
Questions & Help
Replies: 1 comment 1 reply
-
can someone please guide? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So while multiple clients edit the content, we only send changes through websockets and other clients' editors merge new changes automatically.
But what about saving the content to database? Database service doesn't know how to merge new changes to what is already saved. When we save to database, do we have only these two options:
None of these options sound good bandwidthwise. I would be really happy to hear what are the best practices around saving to db.
Also should we save as blob or which data type? (please suggest both for mongo and mysql)
(frontent-nextjs, backend-either next serverless, express, or fastify)
Beta Was this translation helpful? Give feedback.
All reactions