[Developers] Long requests in python with metaweb.readall

Alexei Ustyuzhaninov alust at alust.homeunix.com
Wed Mar 18 18:27:49 UTC 2009


Hello,

I have this request which is expected to return several millions records:

{
   "album" : [
     {
       "artist" : []
     }
   ],
   "artist" : null,
   "id" : null,
   "name" : null,
   "type" : "/music/track"
}

When I run this request with metaweb.readall function it hangs forever 
until an external exception (such as timeout) will happen. I modified 
readall a little (see metaweb2.py attached) in order to check the 
uniqueness of the intermediate data obtained from Freebase. And yes, it 
discovered that the data start duplicated after fetching 27100 first 
records.

Can somebody help with this problem?

-- 
Thanks,
Alexei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metaweb2.py
Type: text/x-python
Size: 12020 bytes
Desc: not available
Url : http://lists.freebase.com/pipermail/developers/attachments/20090318/af229d2c/attachment-0001.py 


More information about the Developers mailing list