diff options
author | Adrian Tschira <nota@notafile.com> | 2018-04-29 13:54:38 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-05-19 17:48:30 +0200 |
commit | 45b55e23d34371986ee0da5be784a1f2134fd58a (patch) | |
tree | f21e44820bdbca75ca1d976c7f937b980c7c3075 /jenkins-dendron-postgres.sh | |
parent | Merge pull request #3241 from matrix-org/fix_user_visits_insertion (diff) | |
download | synapse-45b55e23d34371986ee0da5be784a1f2134fd58a.tar.xz |
Add batch_iter to utils
There's a frequent idiom I noticed where an iterable is split up into a number of chunks/batches. Unfortunately that method does not work with iterators like dict.keys() in python3. This implementation works with iterators. Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'jenkins-dendron-postgres.sh')
0 files changed, 0 insertions, 0 deletions