Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Interactive Web Pages with JavaScript Selecting Elements and Adding Events with JavaScript Plan

Thomas Euget
Thomas Euget
10,615 Points

How would you save the task ina given database? Would you use mongodb?

.

4 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Thomas;

The "how" is going to depend on what database you are using, what driver for that database potentially, and how your data is structured (your database schema).

In terms of if MongoDB would be a good fit for this data structure it certainly could be and would likely do the job well. That being said a relational database could be used as well as, for this particular project, the schema for the data is rather static.

Post back with further questions.

Happy coding,
Ken

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Thomas;

MySQL, PostgreSQL are both examples of relational databases, there are others.

In terms of the differences between relational (SQL for example) and non-relational (MongoDB for example) I would recommend going through some of the database courses here on Treehouse to get some basic questions answered about the differences and advantages/disadvantages to both systems.

And yes, databases will store the files on a database server.

Happy coding,
Ken

Thomas Euget
Thomas Euget
10,615 Points

Hi Ken, thanks for your answer. can you provide me with an example of a relational database? Why is MongoDB not a relational database? Database handling files are stored on the server correct?