Merge lp:~abentley/charmworld/bulk-insert into lp:~juju-jitsu/charmworld/trunk
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | 231 |
Merged at revision: | 232 |
Proposed branch: | lp:~abentley/charmworld/bulk-insert |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
52 lines (+22/-2) 2 files modified
charmworld/search.py (+7/-2) charmworld/tests/test_search.py (+15/-0) |
To merge this branch: | bzr merge lp:~abentley/charmworld/bulk-insert |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+165110@code.launchpad.net |
Commit message
Use bulk-insert to optimize reindexing.
Description of the change
Reindexing charms takes multiple seconds to complete. Ideally, this would be a faster operation, since may be needed when the code changes. By switching from insert to bulk-insert, the operation completes in sub-second time for 1000 charms.
For some reason, Elasticsearch treats a zero-length array as an error instead of a no-op, so ElasticSearchCl
To post a comment you must log in.
looks good