- Where Developers Learn, Share, & Build Careers


OK, so data about several types of posts (common post and complicated with many form fields, assuming DB Preformated post). It is clear that the data of these posts should be stored in separate tables.

The problem is that all these post tables should have some additional choices / comments that are linked to them. This will mean more than tables / queries ...

Would you recommend top organizations in this reply? Or this image:

Another example of the pyphomorphic association But another with polymorphic assoc The problem is, there can not be comment in all the posts (entities). And if I only have to do a search to post, then this is only the information of the object (from the comment table), I have to find a table of all the posts to find it ... or you would recommend it to the solid aproach and a lot Have more tables and inquiries? PS: Any suggestion will be very unfair :)

As you do not paint it, consider getting a good database book and reading part about general forms. In the very wrong context it is the idea that the database is to be enumerated with a lot of tap entries as a very large table, and then to create more tables, the column set is divided carefully. Intuition is not required for many common forms (proper to focus on BCNF), there are well defined generalization rules that guarantee a good result. When you do not need any taps to represent the data model, you have done it. In some cases you might want to avoid some division (and skip) to avoid joining performance reasons, but it should be done only after benchmarking or if you are very experienced with your environment and data. Databases in a Well Normally Databases are a beautiful thing, the questions are simple and the data integrity is easy to implement.

This is a proper introduction.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -