You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use elasticsearch's parallel_bulk for indexing, add ELASTICSEARCH_DSL_PARALLEL default setting and parameters to management command.
Use qs.iterator() for fetching data during reindex, as this is much more memory efficient and performant.
Instead of finding out which methods to call to prepare fields, do that finagling once and cache it for subsequent model instance prepares.
See issue #154 for performance analysis and details.
* Move collection of prepare functions to __init__, where it's conceptually cleaner. Also shaves off a test per object.
* Minor cleanup: Move prepare cache to Document object instead of Model, as it's conceptually possible to have several indices on the same model.
Also remove forced ordering that is a remnant of earlier code.
* chunk_size parameter for queryset.iterator() appeared in Django 2
* Do not crash in init_prepare when no fields have been defined
* Crank up diff size to see what is going on
* Adapt test to changed call pattern
* Adapt tests to changed call patterns
* Mark pagination test as expected failure for now.
* Define _prepared_fields as attribute in class so to_dict() won't pick it up as document field
* remove debugging
* Add parameter no to do a count(*) before indexing, as for complex querysets that might be expensive.
* Fixing example application
* Correctly clean up after test run (delete indices with the right name).
* Remove paginator test.
Add tests for usage of init_prepare() and _prepared_fields.
Add tests for correct calling of bulk/parallel_bulk.
* Make sure we compare w/ stable order
* Adjust for different types for methods/partials in py2
* Correct es dependency (was conflicting with requirements.txt)
* Pass queryset_pagination as chunk_size into parallel_bulk too.
* Add explanation why we use deque()
* Correct typo in explanation of test
* Remove leftover instrumentation print
* Better formatting to avoid backslash-continuation line
0 commit comments