Bulk update values with SQLAlchemy
Aberta
- Linguagem predominante
- Python
- Estrelas
- 1.4k
- Forks
- 170
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Since aiopg does not support bulk insert (https://github.com/aio-libs/aiopg/issues/112), so I use this to insert everything in a single query:
```
await conn.execute(
sa_foo_table
.insert()
.values([
dict(name='name1', x=1),
dict(name='name2', x=2),
dict(name='name3', x=3),
])
)
```
Is there any such thing for bulk updating? Because if I update one by one, it might take quite some time (there are thousands of rows).
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.