You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how to do this, so, a pull request would be appreciated.
I think by default the system must keep reading from master, and adding maybe a parameter to the GET methods to explicitly instruct to try replica. For example something like $replica=true
Another issue to take into account, the reading from read-only replica was implemented opening/closing a direct connection, I mean, no connection pool, which must make it a lot slower than using the pool.
So, as it is, if you use extensively GET in read-only replica it will probably suffer from big slowness, would be better to implement a connection pool on the replica before using this extensively.
GET requests should benefit from read-only-replica implementation
similar to: https://wiki.idempiere.org/en/NF6.2_Reporting_from_Read-Only_Replica
https://mattermost.idempiere.org/idempiere/pl/o8mu6jt593nyzbjk9ausmwyjze
The text was updated successfully, but these errors were encountered: