crate / crate/cratedb-django

Support bulk insert

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Difficulty: Medium enhancement
Dominant language
Python
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Django supports notifying the driver that it wants to create objects in bulk with `bulk_create`, e.g:

```python
>>> objs = Entry.objects.bulk_create(
... [
... Entry(headline="This is a test"),
... Entry(headline="This is only a test"),
... ]
... )
```
In CrateDB bulk inserts in the http protocol can be implemented with [bulk_args](https://cratedb.com/docs/crate/reference/en/latest/interfaces/http.html#bulk-operations).

We should bridge both PRs to implement fast bulk insertion

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Django's bulk_create operation is handled and compare it with CrateDB's HTTP bulk_args documentation. The work is done when Django bulk_create uses the HTTP bulk operation for fast insertion and preserves the behavior shown in the issue's example.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.