[Developers] MQL index property

David Flanagan david at davidflanagan.com
Wed Apr 16 18:24:17 UTC 2008


John Giannandrea wrote:

> Ordering is optional, and the schema doesnt tell you if it is in use.  
> index order can be added to any clause, so anything might be ordered.  
> Its just another kind of assertion, albeit an unusual one.
> 
> While you could add index:null, sort:index to every query, it only  
> makes sense to do so when you know you care and at least some of the  
> data is ordered.

So this is kind of a meta question, but how do I know when the data is 
ordered.  I assume that somewhere, someone will write some documentation 
saying that /music/album/track properties are (or should be) ordered, 
right?  (Oops, now that I've followed the link to 
http://freebase.com/view/guid/9202a8c04000641f800000000513b317, I see 
that this is in the documentation.  Sorry!)

It seems to me that it would be nice if there was an informative (as 
opposed to normative) property of /type/property to indicate that there 
is like to be an ordering on that property.

	David

> In general most data is unordered and asking for things sorted is more  
> expensive.  So it very much depends on the data set.
> 
> -jg
> 
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
> 



More information about the Developers mailing list