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
Now the Index index_queryset() and read_queryset() methods will be called with
the active backend name so they can optionally perform backend-specific
filtering.
This is extremely useful when using something like Solr cores to maintain
language specific backends, allowing an Index to select the appropriate
documents for each language::
def index_queryset(self, using=None):
return Post.objects.filter(language=using)
Changes:
* clear_index, update_index and rebuild_index all default to processing
*every* backend. ``--using`` may now be provided multiple times to select
a subset of the configured backends.
* Added examples to the Multiple Index documentation page
# workers resetting connections leads to references to models / connections getting stale and having their connection disconnected from under them. Resetting before the loop continues and it accesses the ORM makes it better.
233
+
# workers resetting connections leads to references to models / connections getting
234
+
# stale and having their connection disconnected from under them. Resetting before
235
+
# the loop continues and it accesses the ORM makes it better.
0 commit comments