SQL Server vs Mongodb - Disk Size

Asked

Viewed 124 times

0

Today I have a table in SQL Server very large and receives data all the time referring to some factory machine.

This is causing a problem of large disk consumption, table size keeps increasing.

If I passed this table to a non-relational bank like Mongodb, how much would I earn in terms of disk space? Is there any way to realize this account?

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site

1 answer

2

These things depend a lot. Consumption has more to do with your modeling than with the database, and the way you model one is different from modeling another.

Contrary to what people imagine, Mongodb or any tool does not work miracles. My perception is that it will be worse because it is optimized to work with documents, expected from it large entries and without a pattern, so each document must have metadata to "explain" what that is. But without testing and measuring the specific case I can’t say.

Relational databases are highly optimized for space consumption and processing, and current implementations are very flexible and easy to control transactions in. Your disability is basically in more complicated access with need to make relationships (but it brings advantages too) and greater difficulty of vertical scale (but that is less necessary than in other solutions).

You need to see ways to reduce that data, see if you’re using the right types, the right way, if you can do some sort of compression. Mongodb does some compression by default, but only because he wastes too much resources not to. If compression helps then do it in SQL Server, since this is not standard.

If data enters the database endlessly in any technology it will take up a lot of space and there is no miraculous solution to change that. It is possible to do hard engineering work to find solutions.

In general lines this, can not help more without knowing the problem more deeply.

  • Thank you very much Maniero... I think I got an idea, in this case I wouldn’t make up for a migration, I’ll study more about compression and see if it’s possible to follow this line

Browser other questions tagged

You are not signed in. Login or sign up in order to post.