[Developers] Python query not working?
Chris Mahon
darthmahon at gmail.com
Tue Jul 22 15:27:02 UTC 2008
Thanks for all your help Chris, I'll try it out tonight.
Any idea how many results can be returned before it times out?
Cheers,
Chris
On Tue, Jul 22, 2008 at 4:11 PM, Christopher R. Maden <crism at metaweb.com>
wrote:
> Chris Mahon wrote:
> > Right gotcha, makes sense now :)
>
> Cool.
>
> > Out of interest, does the query on the link I provided limit the amount
> > of results it will return or does it return everything?
>
> The "limit":30 clause will limit the results to 30. You can eliminate
> that clause, though for some queries you may run a risk of the query
> timing out; you can add a cursor to page through the results 30 at a
> time; or you can use the mqlreaditer() method instead of mqlread() to
> iterate over the results of a large query.
>
> (Actually, it looks like mqlread() automatically injects a cursor into
> any list query, so my second suggestion there is irrelevant; however,
> using mqlreaditer() is probably easier than turning the cursor'd query
> around yourself.)
>
> ~Chris
> --
> Christopher R. Maden
> Data Architect
> Freebase.com: <URL: http://www.freebase.com/ >
> Metaweb Technologes, Inc. <URL: http://www.metaweb.com/ >
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080722/86679c42/attachment.htm
More information about the Developers
mailing list