Question

In mysql is there a way i can get notified about that a table has been updated with this much amount of rows ? well i need to perform a task to update xml/json feed automatically whyen there is an update in the database .

i searched for few things like calling triggers ,calling a java method from mysql also get notification in python i have checked on SO but i was looking for an approach where less java work will be required to do .doing it from a servlet was an idea for me but doing it from mysql will be good..

any ideas guys ???

Was it helpful?

Solution

a random though, maybe you could do it in your server instead? It seems like you want a simple way rather than a efficent way. I'd recommend trying something like cronjob in linux. Simply make a script in your DB server that query for changes every once and a while, and send some sort of notification(mail?) out when changes detected? I have no idea how complex your script needs to be in order to detect the changes you want, so this might not be the best idea

edit: so basically you want to edit external files with triggers, then maybe UDF is the thing you need.

take a look at this blog and see if that's what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top