php - Doctrine using 2 databases -


so, have app uses doctrine 1.2.

i have 2 databases, 1 read replica , 1 writes.

i use read replica db on select queries , other other operations.

i did research on couldn't find perfect way achieve this.

i don't want initialize 2 connections when config auto loads. make slower. should lazy load when needed.

any workarounds?


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -