Skip to content

Mongodb query events hooks. Using in conjunction with "loic-sharma/profi... #45

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

darioguarascio
Copy link

Query profiler events to use with https://github.com/loic-sharma/profiler

mongoprofiler

@jenssegers
Copy link
Contributor

Would it not be better to use the Connection's logQuery method?

jenssegers added a commit that referenced this pull request Oct 5, 2013
@jenssegers jenssegers closed this Oct 5, 2013
@darioguarascio
Copy link
Author

I'm pretty new to laravel, i didn't find the logQuery method. I guess this is working as well, but i dont see the display of cursor->info useful data. Do you think it would be good to have that displayed ?

Plus, I think it would be good to only log the queries if debug is enabled, to save some time consuming functions to be exectued ( json_encode, cursor info, etc)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants