MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / reset_search_queries

Function reset_search_queries

haystack/__init__.py:65–68  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

63# Probably not extraordinarily thread-safe but should only matter when
64# DEBUG = True.
65def reset_search_queries(**kwargs):
66 for conn in connections.all():
67 if conn:
68 conn.reset_queries()
69
70
71if settings.DEBUG:

Callers 15

test_log_queryMethod · 0.90
setUpMethod · 0.90
test_reprMethod · 0.90
test_iterMethod · 0.90
test_sliceMethod · 0.90
test_manual_iterMethod · 0.90
test_cache_is_fullMethod · 0.90
setUpMethod · 0.90
test_log_queryMethod · 0.90
test_iterMethod · 0.90
test_sliceMethod · 0.90
test_values_slicingMethod · 0.90

Calls 2

reset_queriesMethod · 0.80
allMethod · 0.45

Tested by 15

test_log_queryMethod · 0.72
setUpMethod · 0.72
test_reprMethod · 0.72
test_iterMethod · 0.72
test_sliceMethod · 0.72
test_manual_iterMethod · 0.72
test_cache_is_fullMethod · 0.72
setUpMethod · 0.72
test_log_queryMethod · 0.72
test_iterMethod · 0.72
test_sliceMethod · 0.72
test_values_slicingMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…