summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/compiler.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-11-16 23:34:11 -0500
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-11 13:56:18 +0100
commit2638b75554d2624dca3062a8da113a47f855f2a2 (patch)
tree369a438b4fae60d8ac8f96445f485deb66f36d41 /django/db/backends/postgresql/compiler.py
parent918e7a2c766e67144f1e2bfcc029abe16ce28f54 (diff)
Refs #35936 -- Avoided field placeholder lookup for each value inserted.
By building the list of placeholders for each inserted fields once it doesn't have to be looked up for each inserted rows twice. The query_values_10000.benchmark.QueryValues10000.time_query_values_10000 ASV benchmark showed a 5% speed up for 10k items on SQLite for a single field insertion. Larger performance gains are expected when more fields are involved.
Diffstat (limited to 'django/db/backends/postgresql/compiler.py')
0 files changed, 0 insertions, 0 deletions