MongoDB dot (.) in key name

MongoDB doesn’t support keys with a dot in them so you’re going to have to preprocess your JSON file to remove/replace them before importing it or you’ll be setting yourself up for all sorts of problems. There isn’t a standard workaround to this issue, the best approach is too dependent upon the specifics of the … Read more

Non-Relational Database Design [closed]

I’ve only just started with non-relational DBs, and I am still trying to wrap my head around it and figure out what the best model would be. And I can only speak for CouchDB. Still, I have some preliminary conclusions: Have you come up with alternate designs that work much better in the non-relational world? … Read more

Foreign keys in mongo?

How to design table like this in mongodb? First, to clarify some naming conventions. MongoDB uses collections instead of tables. I think there are no foreign keys! Take the following model: student { _id: ObjectId(…), name: ‘Jane’, courses: [ { course: ‘bio101’, mark: 85 }, { course: ‘chem101’, mark: 89 } ] } course { … Read more

SQL (MySQL) vs NoSQL (CouchDB) [closed]

Here’s a quote from a recent blog post from Dare Obasanjo. SQL databases are like automatic transmission and NoSQL databases are like manual transmission. Once you switch to NoSQL, you become responsible for a lot of work that the system takes care of automatically in a relational database system. Similar to what happens when you … Read more

What does Redis do when it runs out of memory?

If you have virtual memory functionality turned on (EDIT: now deprecated), then Redis starts to store the “not-so-frequently-used” data to disk when memory runs out. If virtual memory in Redis is disabled (the default) and the maxmemory parameter is set (the default), Redis will not use any more memory than maxmemory allows. If you turn … Read more

What is the recommended way to delete a large number of items from DynamoDB?

What I ideally want to do is call LogTable.DeleteItem(user_id) – Without supplying the range, and have it delete everything for me. An understandable request indeed; I can imagine advanced operations like these might get added over time by the AWS team (they have a history of starting with a limited feature set first and evaluate … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)