English 中文(简体)
背书的铁路和多个数据库
原标题:Rails and multiple database in backend

I currently have a Rails application which is configured with one MySQL database.

问题是,数据库的规模迅速扩大。 Roughly ~3,500,000 每3个月记录一次,大小1 GB

尽管采用了适当的指数,但直到最近才开始对数据库进行查询。

我真的把我的SQL的局限性延伸到这里? 我是否可以利用任何铁路,使我能够使用同样的代码,与得到支持的多个数据库合作,以便一个非银服务器能够负担吗?

在这种情况下,你会做些什么?

问题回答

页: 1 数据库

你在这里描述的规模对于一个神秘的事例来说,绝非太大。 少数几百万人行和一夫一妻的大小并不好。 简单地调整你们的组合,可以取得很多成绩。 你们是否使用因诺德语? 如果是这样的话,就很难看一看我的卷宗,并密切关注你们的诺迪卜·布迪-集合。 此外,你们的准入是谁? 多读、少写? 几个字: 两者? 你们可以增加一个像午线这样的沥滤层。 如果是多种文字的话,你可以添加复制奴隶。 简言之,在你不得不打断你的数据库之前,也许会有一些跑道。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签