Re: Simple backend change in read_query
But it does not change the connection to the other server. It will execute the same query on the same server (mostly the master backend server)
See what I want to do is I want to run all SELECT queries on slave machine and all other queries on the master machine, Using tutorial-keepalive.lua i can get that the SELECT query is going to execute, even I can chagne the id of backend using 'proxy.connection.backend_ndx' but the query is not executed there. It is going on the main connection database. What I found is that we can not change the database connection in the read_query function. I tried to make connection change in 'connect_server()' function but in this function I am not able to get the query or query type so that I can change my connection according to the query.
Subject
Views
Written By
Posted
4874
September 21, 2007 11:55AM
3005
October 22, 2007 05:04AM
Re: Simple backend change in read_query
2543
March 19, 2008 12:06AM
2602
March 28, 2008 12:04AM
2782
May 14, 2008 04:46AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.