Skip to content
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

used prefetch_related in JobAnnotation.save methods #380

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

azhavoro
Copy link
Contributor

@azhavoro azhavoro commented Apr 5, 2019

No description provided.

@nmanovic nmanovic merged commit 443035d into nm/rest_api Apr 5, 2019
@nmanovic nmanovic deleted the az/performance_fix_1 branch April 5, 2019 20:14
TOsmanov pushed a commit to TOsmanov/cvat that referenced this pull request Aug 23, 2021
Instead of adding a global `on_error` variable in the module of the calling
function, use a thread-local variable in the `Rollback` class, and a
shorthand function for brevity. This has the following advantages:

* Linters and IDEs no longer complain about undefined variables.
* The `Rollback.current` accessor is type-annotated, allowing IDEs to provide
  autocompletion for methods.
* Using a thread-local variable eliminates potential conflicts if Datumaro
  is used in multiple threads.
* The `implicit` parameter is no longer required, since we can default
  to implicit mode if the variable name is unspecified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants