query events and callbacks
query events and callbacks
skeleton for query profiling