I am debating how I should organize my database which pulls information from Facebook’s Open Graph API. I am looking to gather information for a specific page such as:
- Albums
- All photos in an album
- All comments/likes/names for all photos in an album
Is it more efficient for me to structure my database to include all this information in one table or in multiple tables (i.e. Albums table, Photos table, Comments table, etc.)? If it matters, I will be using MySQL databases and having them accessed and read via PHP.
There’s just absolutely no way you’re going to get all this information in a single table and be able to query it effectively. Design a relational database to store all of this information.