[Developers] Postal code: surprising MQL time-out

John Giannandrea jg at metaweb.com
Sat Aug 2 20:34:52 UTC 2008


Ill file a bug so we can look into it more.
But in general if you are trying to find the most recently typed  
things you want this (which is much faster).
-jg

[
   {
     "*" : null,
     "limit" : 1,
     "sort" : "-type.link.timestamp",
     "type" : {
       "id" : "/location/postal_code",
       "link" : {
         "timestamp" : null
       }
     }
   }
]

On Aug 2, 2008, at 12:11 AM, Will Moffat wrote:

> Hello,
>
> Can anybody explain why this query times out?
> [
>   {
>     "*" : null,
>     "limit" : 1,
>     "sort" : "-timestamp",
>     "timestamp" : null,
>     "type" : "/location/postal_code"
>   }
> ]
>
> It seems pretty innocent, "show me the info on the last postcode added
> to Freebase".
>
> Removing the "*":null makes it work, but why does it time-out in the
> first place?
>
> thanks,
> -Will
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list