Why did you use two (or more) databases instead of one?

Many database libraries are installed for multiple database connections, but I never knew about a scripting application that needed to connect to two databases at the time of its launch. (compiled, working with a daemon languages ​​is another matter).

I understand that you have subordinate databases, so you can distribute the load, but usually only one of them is selected at startup to deal with these scenarios.

So why should a PHP or Ruby application connect to multiple databases? Or rather, why did you split the data among several databases?

The only thing I can think of is a poor design from a slowly developing system that started in several separate parts.

+3
source share
8 answers

Are you talking about different physical database servers or different databases in the sense of "schema"?

As for physical servers, if you use MySQL replication, you can write to the master and always read from the slave. This helps to share the load between each database.

+3
source

The simple answer is scalability.

" ". ORM , .

, . , ad-hoc, , . , ( ) , .

- . , . Whislt, , , .

, - . - , MySQL 32- 3Gb 8- 64- 8 . , , . 50 , .

+2

, , , The Wrong Database. PeopleSoft (Oracle). , Enterprise CRM Informix. - , MS SQL Server. , , (, ).

, . ( , : MySQL- > MySQL.) , , , , Framework .

+2

, . - (CMS DB) -, ( , CMS). .

. , . .

+1

Ruby, . ( ). , ( ). , ( ). , , .

+1

, - . , ( ) (). script - , , .

. , , . , , .

, , .

+1

: ( SELECT) ( SELECT, UPDATE, INSERT, DELETE , ). , .

0

. , . , . , ( ), , , . , , , , .

, , , . , , , 10 000 000 . , , , , , .

, , . ( ).

COTS ( , , HR, ). - . , , .

differnt.

0

Source: https://habr.com/ru/post/1752171/


All Articles