Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?