Hacker News new | past | comments | ask | show | jobs | submit login

You have multiple databases, just like a sql solution. One database per project.



Can you elaborate please? With a Postgres/MySQL/Oracle installation I can say `CREATE DATABASE` and get a new namespace. I couldn't find anything like that with Mongo. Am I just missing something?


"use foobar" creates a new database called foobar.


Ah, somewhere along the line I got the impression that in Mongo a "database" and a "collection" were the same thing, but that's not true. Glad to know this was just my mistake!


Nope. Collections are analogous to tables, and documents to rows.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: