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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -