What is the recommended equivalent of cascaded delete in MongoDB for N:M relationships?

What you are doing is the best and most optimal way of doing it in Mongo. I am in a similar situation and after going all possible implementations of the N:M design pattern, have also arrived to this same solution. Apparently, This is not a mongodb thing, but more of a concept of NoSQL, wherein, … Read more

Relational vs. Dimensional Databases, what’s the difference?

A star schema really lies at the intersection of the relational model of data and the dimensional model of data. It’s really a way of starting with a dimensional model, and mapping it into SQL tables that somewhat resemble the SQL tables you get if you start from a relational model. I say somewhat resemble … Read more

The Next-gen Databases [closed]

I would say next-gen database, not next-gen SQL. SQL is a language for querying and manipulating relational databases. SQL is dictated by an international standard. While the standard is revised, it seems to always work within the relational database paradigm. Here are a few new data storage technologies that are getting attention (circa 2008 when … Read more

What is the difference between a Relational and Non-Relational Database?

Hmm, not quite sure what your question is. In the title you ask about Databases (DB), whereas in the body of your text you ask about Database Management Systems (DBMS). The two are completely different and require different answers. A DBMS is a tool that allows you to access a DB. Other than the data … Read more

Difference between Document-based and Key/Value-based databases?

The main differences are the data model and the querying capabilities. Key-value stores The first type is very simple and probably doesn’t need any further explanation. Data model: more than key-value stores Although there is some debate on the correct name for databases such as Cassandra, I’d like to call them column-family stores. Although key-value … Read more

Storing time-series data, relational or non?

Definitely Relational. Unlimited flexibility and expansion. Two corrections, both in concept and application, followed by an elevation. Correction It is not “filtering out the un-needed data”; it is selecting only the needed data. Yes, of course, if you have an Index to support the columns identified in the WHERE clause, it is very fast, and … Read more

Why should I use document based database instead of relational database?

Probably you shouldn’t 🙂 The second most obvious answer is you should use it if your data isn’t relational. This usually manifests itself in having no easy way to describe your data as a set of columns. A good example is a database where you actually store paper documents, e.g. by scanning office mail. The … Read more

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