News for hackers. Stuff that matters.
Re:Goodbye MongoDB, Hello PostgreSQL by zrail on Tuesday March 10, 2015 @09:08PM (#9181908)
(solely toward your final point) Many RDBMS' will optimize that for you. PostgreSQL has a bitmap structure on each row that indicates which columns are null and which have data in them. In addition, it automatically compresses certain data types. For example, strings that overflow to the point where they need to be stored in a secondary table (called "toast" in pg) will be automatically compressed.
Re:Goodbye MongoDB, Hello PostgreSQL by IgorPartola on Tuesday March 10, 2015 @10:55PM (#9182291)
That's pretty cool. I didn't know Postgres actually did this, though I figured it was at least possible.