Hacker News new | ask | show | jobs
by clintonb11 5014 days ago
You have multiple databases, just like a sql solution. One database per project.
1 comments

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.