Is that functional code that reproduces the results?



On Mon, Sep 5, 2011 at 13:52, near-a-point <[email protected]> wrote:
> I am storing 2 types of files (File A, File B) in blob viewer.
>
> I have noticed that if I filter the results by a specific file (for
> example File A) and ask that it be sorted Descending, the sort is not
> applied to the filtered results but rather to the unfiltered results.
>
> i.e. if I run a query such as
>
> gqlquery = blobstore.BlobInfo.gql("WHERE filename = :1 ORDER BY
> creation DESC","File A")
> cursor = gqlQuery.fetch(X)
>
> I expected it to first retrieve all the results whose filename is File
> A and then sort it in descending order (so that I get the most
> recently created records), but it doesn't seem to be doing that.
>
> Has anybody experienced this issue b4 and what was the work around?
>
> I just need to be able to retrieve the most recent 'N' records for a
> specific file name
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to