Tuesday, July 12, 2011

Re: speeding up iterating over query set

On Jul 12, 3:49 pm, Michel30 <forerunn...@gmail.com> wrote:
> I have tried and I think I have it mostly working: it returns ALL
> unique docid's.
>
> What is left is that my code is part of a search function. Originally
> I got normalized keywords from a user and used those Q-objects to look
> for keywords in a selected set of columns.
>
> I still have to figure out how to get that into the SQL part..

With the 2-fold solution I suggested (raw SQL query to retrieve latest
revisions then "normal" ORM query) you may not have to "get that into
the SQL part" - just use it in the second "normal" ORM query.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate