Hi all,
This is a small technique that we use at Netlog: tagged queries.
Instead of just executing your queries, we use the debug_backtrace function to detect on which file:filenumber / functionname the query was called. This makes it more easier to map queries to functions.
Although this adds some overhead to debugging, I personally think it's usefull. Maybe there could be a feature wrapped around it that users can enable/disable. I also made it available only for MySQL since I'm sure that it works there.
Please let me know your thoughts.
Kind regards,
Nicolas Van Eenaeme
This is a small technique that we use at Netlog: tagged queries.
Instead of just executing your queries, we use the debug_backtrace function to detect on which file:filenumber / functionname the query was called. This makes it more easier to map queries to functions.
Although this adds some overhead to debugging, I personally think it's usefull. Maybe there could be a feature wrapped around it that users can enable/disable. I also made it available only for MySQL since I'm sure that it works there.
Please let me know your thoughts.
Kind regards,
Nicolas Van Eenaeme