21.08.2012, 18:16
SQL query is the heaviest thing any code does. You can do it in some other way - f.e run some other language (php/python) script on the server machine, and if detects changes in db, then create temporary file which if detected by your script runs real sql query. Or something like that.