Skip to content

Rewrite N plus one tracking#409

Merged
adamchainz merged 6 commits intomasterfrom
rewrite_n_plus_one_callset
Nov 29, 2019
Merged

Rewrite N plus one tracking#409
adamchainz merged 6 commits intomasterfrom
rewrite_n_plus_one_callset

Conversation

@adamchainz
Copy link
Copy Markdown
Contributor

  • Write a new class, NPlusOneTracker, that achieves what the old NPlusOneCallSet + NPlusOneCallSetItem did in one function call
  • Use Python's defaultdict and __slots__ to be a bit faster
  • Fix executemany tracking on SQL Alchemy and Django to add correct count so backtraces are captured correctly.

@adamchainz adamchainz merged commit d2e80b8 into master Nov 29, 2019
@adamchainz adamchainz deleted the rewrite_n_plus_one_callset branch November 29, 2019 12:56
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.

1 participant