I am building a Pinterest-like website, and I need to store albums and their related photos in a database, so each User has Albums that have Photos, and each Photo has Pins
Since the data is flat, and I do not need complicated relations, I thought of storing the information in a NoSQL database such as MongoDB, so the main document is an album, and each album holds an object (list) of photos.
However , I'm not sure that this is a good architecture , as I need to query very fast Photos by title/description/user regardless of the album which contains it. Should I use relational Database instead? or it can be achieved in NoSql database with high performance?