[JS][NODE] Best lightweight DB? 05-24-2015, 02:33 PM
#1
I've been building a URL shortener in Node w/ Express and Semantic-UI.
There will be 4 columns in the DB: ID, orginal URL, code, date created. I was looking at MongoDB or CouchDB, but looking for other suggestions.
Method for getting the short code is via multiplying the row ID by 100000000, then basically base_convert'ing it via
to get a fairly decent individual code.
Any advice?
There will be 4 columns in the DB: ID, orginal URL, code, date created. I was looking at MongoDB or CouchDB, but looking for other suggestions.
Method for getting the short code is via multiplying the row ID by 100000000, then basically base_convert'ing it via
Code:
parseInt(DBID, 16).toString(36)to get a fairly decent individual code.
Any advice?








![[+]](https://sinister.li/images/modern/collapse_collapsed.png)