简体   繁体   English

在电子商务服务器中使用NoSQL

[英]Using noSQL in e-commerce server

e-commerce is a product of microsoft.As i gone through the product i came to know that it is mandatory to use SQL server along with e-commerce sever.i want to increase the speed of the retrival process and want to use a NoSQL database like MongoDB in place of SQL.Is that possible? 电子商务是Microsoft的产品。当我浏览该产品时,我知道必须将SQL Server与电子商务服务器一起使用。我想提高检索过程的速度并希望使用NoSQL像MongoDB这样的数据库代替SQL,这可能吗? please advice. 请指教。

No, you can't. 不,你不能。

MongoDB can not be used as a drop-in replacement for SQL databases. MongoDB不能用作SQL数据库的直接替代。 It already starts with the different and incompatible query language. 它已经以不同且不兼容的查询语言开始。

But it goes on with them having a completely different way of handling data, which makes it superior in some roles, but inferior in others. 但是,随着他们处理数据的方式完全不同,这使得它在某些角色中表现出色,而在其他角色中则逊色。 Even when you would use some translation-middleware which mimics a SQL server and translates the query commands into the equivalents of the MongoDB database behind it and translates the response back, the performance would likely be a lot worse than with a native MSSQL database, because you would be using MongoDB in a way it wasn't meant to be used. 即使您使用某种模仿SQL Server的翻译中间件,并将查询命令翻译成其后的MongoDB数据库的等效物,然后将响应翻译回去,其性能也可能比本机MSSQL数据库差很多。您将以不应该使用的方式使用MongoDB。

When you want to use MongoDB successfully, you completely need to change the way you model your data and the way you deal with it. 当您想成功使用MongoDB时,您完全需要更改对数据建模的方式以及处理数据的方式。 This affects your whole application design. 这会影响您的整个应用程序设计。 When you try to use MongoDB as if it were a relational database, you will be extremely disappointed. 当您尝试将MongoDB当作关系数据库使用时,您将非常失望。

The same applies to other NoSQL databases. 其他NoSQL数据库也是如此。

Also, not every problem is a good fit for every database technology. 同样,并非每个问题都适合每种数据库技术。 When it comes to eCommerce applications, you should really think twice before choosing a database technology which doesn't fully guarantee ACID in all situations. 对于电子商务应用程序,在选择不能完全保证在所有情况下都使用ACID的数据库技术之前,您应该三思而后行。 Most (not all!) SQL databases do, most (not all!) NoSQL databases don't. 大多数(不是全部!)SQL数据库都可以,大多数(不是全部!)NoSQL数据库都没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM