database - Django: several tables for one model. -


I have a model "message" that I use to store messages on the site. These are messages in discussions, private messages and maybe chat. They are all stored in a table. I wonder if I broadcast messages between multiple models and tables, then it will be faster. One for chat, one for discussions and so on

Should I put all the messages in one table / model or make many similar models / tables?

Unless you have an index on your type column and on that Filter, it will be about the same speed when your table really gets bigger, then just the blur on the type column and it will be similar to the display of multiple tables, but your app Only a large table will see.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -