Comments (3)
Yeah the documentations been in a bit of a sorry state, I've updated it to make it more clear.
Unfortunately I don't think it's going to help much with inserts, but feel free to give it a shot and let me know if it helps you!
from django-auto-prefetching.
Gotcha.
The stackoverflow question mentions four queries. The last one (4) is an insert. The third one I was able to turn off. But numbers 1 and 2 are foreign-key queries, one of which is the same query repeated over and over because fk1 doesn't change. This feels like it would be helped by a pre-fetch. But, again, I can't get it to work.
from django-auto-prefetching.
Unfortunately Django checks foreign keys on insert, even though things are prefetched. I think you might be able to get around it by using bulk_insert
, but unsure.
from django-auto-prefetching.
Related Issues (17)
- Runtime error thrown if you forget to add many_true to a Serializer that needs it.
- Prefetch when returning nested object from POST HOT 2
- Add CircleCI Status Badge HOT 1
- Allow for generic views HOT 1
- Overwriting `get_queryset` method HOT 1
- RestQL integration/support HOT 1
- Additional unnecessary prefetching occurs in some edge cases HOT 3
- function based view support HOT 1
- FieldError using HyperlinkedIdentityField HOT 1
- Opinion on djangorestframework-serializer-extensions HOT 3
- dotted notation to traversel in serializer gives AttributeError HOT 6
- FEATURE REQUEST: user can customize prefetch fields in ViewSet HOT 2
- BUG: get_serializer_class not supported HOT 3
- Shouldn't we check the field only if it's inherited from ModelSerializer instead of BaseSerializer? HOT 6
- Why PrimaryKeyRelatedField is not in IGNORED_FIELD_TYPES? HOT 3
- Duplicate LEFT Join HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-auto-prefetching.