简体   繁体   English

在这种情况下我应该使用多个数据库(Ruby on Rails)

[英]Should I use multiple databases in this situation (Ruby on Rails)

Through my companies website, our users can make artwork requests. 通过我的公司网站,我们的用户可以提出艺术品请求。 Currently they are just being emailed to a single person. 目前,他们只是通过电子邮件发送给一个人。

I have been developing a separate application we'll call it "artwork manager", that will queue these artwork requests for our in house artists, and they will be passed out accordingly. 我一直在开发一个单独的应用程序,我们将其称为“艺术家经理”,它将为我们的内部艺术家排队这些艺术品请求,并且它们将相应地传递出去。

Our company website database contains the art_request table that this other application needs access to. 我们公司的网站数据库包含此其他应用程序需要访问的art_request表。

The "artwork manager" application only has an artists, art_doc, and awards, tables. “艺术家经理”应用程序只有艺术家,art_doc和奖项,表格。

Should I just add these tables to our company website, and connect to that database? 我应该将这些表添加到我们公司的网站,并连接到该数据库吗? Or would it be best to use a separate database for each application? 或者最好为每个应用程序使用单独的数据库? They are both being hosted on the same server. 它们都托管在同一台服务器上。

Don't separate your databases, it will create a lot of confusion on development later. 不要将数据库分开,以后会对开发造成很多困惑。 I strongly suggest merge it to one application. 我强烈建议将它合并到一个应用程序中。

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

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