Back

[SOLVED] Scalable database design

  • 0
  • Databases
  • Web
Drake
18 Sep, 2023, 20:42

ultimately, there are tradeoffs and it's up to you.

you can research database normalization, but in practice, databases aren't always normalized because it depends on the use case

TL;DR
The user is seeking advice on designing a scalable database. They suggest creating another table called "movie_actions" to connect various collections related to movies, such as "movie_liked," "movie_review," etc. The user acknowledges that their current setup of one collection per functionality is not ideal and difficult to maintain consistency. They are open to suggestions and interested in the final decision. Later, the user accidentally deletes a post and asks how to undo it. The solution suggested is not to worry about deleting posts as they can be helpful for others to see. The overall recommendation is to research database normalization, although it may not always be necessary depending on
loup
18 Sep, 2023, 22:35

[SOLVED] Scalable database design

Drake
18 Sep, 2023, 22:37

@loup no need to delete your posts. it can be helpful for others to see

loup
18 Sep, 2023, 22:55

Sry I’ve miss clicked… idk how to undo

Drake
19 Sep, 2023, 00:12

i don't think you can undo a delete. no worries

hamed
19 Sep, 2023, 08:22

I'm interested in your final decision

loup
19 Sep, 2023, 12:39

Well I dont have the final decision because I dont have enought experience in dev

loup
19 Sep, 2023, 12:39

But my actual setup is one collection per functionnality

loup
19 Sep, 2023, 12:40

But its so hard to maintain consistency between each document

loup
19 Sep, 2023, 12:41

There is an exemple about my database design but isnt really good

loup
19 Sep, 2023, 12:41
loup
19 Sep, 2023, 13:22

Maybe I can create another table movie_actions which is a collection connected to movie_liked, movie_review, movie_rated, movie_watched, movie_watchlisted, movie_guidelisted. Like this I can only call the movie_actions to get all action from user about a movie

loup
19 Sep, 2023, 13:22

But that make a lot of collection

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more