Is SQL NOSQL possible or not?

I have an application in a relational database that needs to be modified to store more data. My problem is that only two tables will store more data (up to billions of records), and one table is "linked" fk to other tables. I could abandon the relational model for these tables. I would like to leave the rest of db intact and change only these 2 tables. I also make a lot of queries - from simple selections to groups and subqueries - on these tables, so there are more problems.

My experience with NoSQL is limited, so I ask which one (if any) of his siblings meets my needs: - huge data - complex queries - integration with SQL database. This is not as important as the first two, and I could migrate my entire db to the equivalent, if it's worth it.

thanks

+6
source share
1 answer

Both relational databases and NoSQL approaches can process data with billions of data points. It is difficult to make a meaningful and concrete recommendation with the information provided. It would be useful to know more about what you are trying to do with the data, what are your options regarding your equipment and network topology, etc.

I assume that since you are currently using a relational database, you have probably already reviewed the section or structured your large tables so that your query performance is satisfactory. This activity in itself may be nontrivial, but IMHO, a good database design with optimized sql, can go a very long way before there is a clear need to explore alternatives.

However, if your data usage looks like once, read it often, connection dependencies can be managed, and you need to perform some aggregations on the data set, then you can start looking for alternative approaches, such as Hadoop or MongoDB - however, this choice involves compromises from the point of view view of their performance, capabilities, platform requirements, latency, etc. Your specific question about integration between the NoSQL repository and the SQL database at the query level may not be implemented without some duplication of data between them. For example, MongoDB does not like joins (http://stackoverflow.com/questions/4067197/mongodb-and-joins), so you should develop your persistence model with this in mind, and this may be due to data duplication.

What I'm trying to do is determine the β€œright” approach will depend on your specific purpose and limitations.

+3
source

All Articles