Mariatta 🤦🏻♀️ :python: on Nostr: TIL about the bulk import functionality in django-import-export library. Some ...
TIL about the bulk import functionality in django-import-export library.
https://django-import-export.readthedocs.io/en/latest/bulk_import.htmlSome caveats:
- set `batch_size` for better performance
- doesn't work with many-to-many relationships
- no `pre_save` and `post_save` signals sent (it' doesn't call `model.save()`)
#TIL #Learning #Django #Python
Published at
2025-03-12 22:04:25 UTCEvent JSON
{
"id": "c18a8943e744c201defbaabe5964e70fe8f66c3770d537f9d64b437cf6891cdb",
"pubkey": "962a36c29dc978d27f1ee9561572ac905e35ec79dfa7c42e77606688c123dfbe",
"created_at": 1741817065,
"kind": 1,
"tags": [
[
"t",
"TIL"
],
[
"t",
"learning"
],
[
"t",
"django"
],
[
"t",
"python"
],
[
"proxy",
"https://fosstodon.org/users/mariatta/statuses/114151723210007832",
"activitypub"
]
],
"content": "TIL about the bulk import functionality in django-import-export library.\n\nhttps://django-import-export.readthedocs.io/en/latest/bulk_import.html\n\nSome caveats:\n- set `batch_size` for better performance\n- doesn't work with many-to-many relationships\n- no `pre_save` and `post_save` signals sent (it' doesn't call `model.save()`)\n\n#TIL #Learning #Django #Python",
"sig": "f3bfb4000bd1b129929a5bc5d510a5a0d0a7bcdd026e12b914c51cda142c285f3ba02b36d3dad2c3e45f4e7dcadf6e544c20fd6213072c233214a0abce6e5670"
}