I want to use the trac data (ticket information,status,etc) in a webpage, since the data retrieval is very very slow (The reason I explain this is because am afraid my problem may be XY Problem) and hence I exported all the data to a DB for faster access.
Now the problem is if someone updates a ticket then I have old data in DB. Even if I update my DB after regular intervals then also between two updates someone could have updated the ticket and someone could have requested the info on the website.
So i thought what if the trac updates my DB, after each new ticket creation or a ticket modification.
So i need to put a post script somewhere that will execute each time the trac is updated and will update my DB.
If its not possible then I am willing to migrate to Redmine if its possible to do the same in it.
Update 1
Trac Version : 0.11.5
Plugins : No idea, Its company trac, I cannot find anything in the GUI
Java api : XML-RPC
Time taking : 20-30 seconds
Update 2
Here's my code
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl ();
config.setBasicUserName ("harry");
config.setBasicPassword ("my_passwd");
config.setServerURL(new URL("https://host.domain.com/project/trac/login/xmlrpc"));
XmlRpcClient client = new XmlRpcClient();
client.setConfig (config);
TrackerDynamicProxy xmlRpcProxy = new TrackerDynamicProxy(client);
Ticket ticket = (Ticket)xmlRpcProxy.newInstance(Ticket.class);
Vector vector = ticket.query(); // gives all ticket number
for(Object obj : vector)
ticket.get((Integer)obj).get(3); // summary column
This way each ticket almost takes half second, and there are many tickets so it takes around 20-30 seconds overall.