-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log execution time of all CRUD APIs #214
Comments
Gotta get that timer in there! |
Hey! Been long time my dude! Thanks for helping me out with my passion project! Was also good catching up with you on Zoom 😁 |
vestrel00
added a commit
that referenced
this issue
Jun 10, 2022
Closes #214: Log execution time of all CRUD APIs
vestrel00
added a commit
that referenced
this issue
Jun 10, 2022
vestrel00
added a commit
that referenced
this issue
Jun 13, 2022
This is included in release 0.2.1! |
vestrel00
added a commit
that referenced
this issue
Jun 14, 2022
vestrel00
added a commit
that referenced
this issue
Jun 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Users of this library have no easy way of knowing how long each query
find()
or insert/update/deletecommit()
functions take to execute, which would be very useful to know when dealing with very large data sets (e.g. 100,000 contacts).Solution
Log the execution time in the
LoggerRegistry
, which currently looks like;I'm thinking of adding
private val apiExecutionStartTimeMillis: MutableMap<CrudApi, Long>
. We can do something like...This will require refactoring ALL calls to
onPostExecute
to add theapi: CrudApi
as a parameter. It's a lot of redundant work but having theapi
and theresult
available in the same function will be very useful for a lot of other things and should have been the initial implementation anyways 😅The text was updated successfully, but these errors were encountered: