Implement linear search #150

dcramer opened this Issue May 13, 2011 · 2 comments


None yet

2 participants

dcramer commented May 13, 2011

Full-text is hard. Let's start with a linear search, and move towards something better.

For example:

total, n = 0, 0
results = []
while total < 100 and n < 1000:
    for g in Group.objects.order_by('-last_seen')[n:100]:
        if has_matching_query(g, query):
    n+= 100
dcramer commented May 13, 2011

Another (working) implementation I did on this in another project:

Mostly as a prototype, but it should be fast enough

alex commented Dec 12, 2012

This has long been fixed.

@dcramer dcramer closed this Dec 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment