开发者

Multiple DB Platforms For A Single App

is it generally acceptable to store relational data in an rdbms like mysql, and place, lets say开发者_JS百科, arbitrary relationship data in a separate graph database system like neo4j? what about primary keys referenced in one db to another? or, another example: using mongodb for log data when mysql is the primary database platform for the application?

i would consider a scenario like using the sphinx search engine as a full-text backend populated by mysql to be a solid example of this being viable in practice, but would like to hear what others think.

an example implementation would be having entities related to a piece of content stored in mysql, and having deep relationships between entities stored in neo4j.


In my experience, some of the reasons for doing so would be for data warehousing, so that one database gets hit primarily for reporting, while the other database is for the online processing of the live app. Another reason would be two related systems may link up (like linking server in SQL Server).

It might be hard to maintain or link if you have two separate products. Could be wrong as I don't know a lot about those products, but seems to me that the relations within mysql would be eaiser to develop against. However, if you have a special need like graphing, that is a good use of multiple DB's.

I guess it depends on what are you doing with these databases?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜