is this part of the app open-sourced? it's a great idea.
Dropbox-as-a-Database
21–30 of 34 posts
Re: Dropbox-as-a-Database
#22is this part of the app open-sourced? it's a great idea.
Re: Dropbox-as-a-Database
#23is this part of the app open-sourced? it's a great idea.
You can find the source code here : https://github.com/cedricss/server-monitor/
And also shows its really a one-day app!
Re: Dropbox-as-a-Database
#24I've used .json files in place of a database before on a read-only site. It worked very well. I do believe that we over-engineer some times and use databases when flat files will do just fine.
I say this as someone who worships Crockford for inventing JSON.
I've seen too many projects get fucked hard because they used flatfiles.
Edit: Seriously though, managing synchronization/atomic changes to flatfiles manually is a Bad Idea (TM).
It's somewhere up there with, "I have a performance problem. I'll use pthreads!" Now you have 1,02-SEGMENTATION FAULT problems.
Re: Dropbox-as-a-Database
#25Reminds me of the GMail filesystem: http://www.viksoe.dk/code/gmail.htm
Re: Dropbox-as-a-Database
#26I've used .json files in place of a database before on a read-only site. It worked very well. I do believe that we over-engineer some times and use databases when flat files will do just fine.
Re: Dropbox-as-a-Database
#27It seems rather generous to call this a database. It's files on a filesystem. The lack of any kind of transactional consistency guarantees (Dropbox is notoriously awful at this), and the lack of any sane mechanism for querying this "database" means that it's just "data", not a "database".
Transactions are not a requirement for databases, and querying is the domain of the DBMS, not the database itself.
Re: Dropbox-as-a-Database
#28It seems rather generous to call this a database. It's files on a filesystem. The lack of any kind of transactional consistency guarantees (Dropbox is notoriously awful at this), and the lack of any sane mechanism for querying this "database" means that it's just "data", not a "database".
I think he calls it "database" because it is strongly integrated with the database syntax of the Opa language. You can declare and use this "dropbox-database" just like a Mongo one, independently of the notion of safe-ness of the database.
Re: Dropbox-as-a-Database
#29It is a fun exercise to do these kinds of things. Obviously, they are very inefficient. But that is not the point! Perhaps there's some residual value related to some Dropbox feature (such as automatic replication) that makes this useful . But that is countered by getting your account rate-limited by Dropbox. I wonder, is there some way to create a key-value store out of any physical or virtual object that can store…
Start using the DB. If you get bored enough you can examine the data physically in-game.
Re: Dropbox-as-a-Database
#30It is a fun exercise to do these kinds of things. Obviously, they are very inefficient. But that is not the point! Perhaps there's some residual value related to some Dropbox feature (such as automatic replication) that makes this useful . But that is countered by getting your account rate-limited by Dropbox. I wonder, is there some way to create a key-value store out of any physical or virtual object that can store…
A Minecraft game would make a hilarious database. The fact that it's probably pretty trivial to CRUD it programmatically outside the Minecraft client by manipulating save files is a great bonus. Start using the DB. If you get bored enough you can examine the data physically in-game.