Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

My question is more about relational database scheme.

I have in mind two tables for it:

Posts Activities Where when I post a a status message it probably creates a record for a Post and an Activity representing this (for build the feed and represent notifications).

Well, in case of renaming the name of a facebook's group I started to have this question.

Is created ("simulated") a Post record for a name changes or just and activity record?

share|improve this question

1 Answer 1

While I can't comment how Facebook works internally, in terms of relational design, a normalized schema would have these two actions in separate tables.

This would be done because the other bits of information associated with each action would be very different.

Changing a group's name would probably involve inserting a history record with the old name, and updating the current record with the new name. Notifications could have other things associated, such as comments and likes.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.