Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: