Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

YQL Limit parameter

The yql limit parameter does not seem to be working. I've tried the

select * from xml where foo='bar' limit 10
select * from xml(10) where foo='bar'

But it seems that Ti pushes all the records through instead of 10. It works fine in the console tho.

— asked March 16th 2010 by Glenn Tillemans
  • mobile
  • yql
0 Comments

4 Answers

  • Yeah the flickr statements are working just fine. But when i try to use a xml/json/rss file as input the user side limit 10 nor the serverside xml(10) are working in Ti. They both work fine in the YQL console.

    — answered March 24th 2010 by Glenn Tillemans
    permalink
    0 Comments
  • Here is my statement, works perfectly with 50 items and no limitations:

    select * from flickr.photos.search(50) where user_id='91041780@N00'
    
    — answered March 24th 2010 by Seb S.
    permalink
    0 Comments
  • i am having the same problem, anyone solved this?

    — answered March 25th 2010 by Jordan F
    permalink
    0 Comments
  • that's strange… my query behaves even different:

    select * from xml where foo='bar' limit 50 > returns only 10 results

    but

    select * from xml(50) where foo='bar' > returns 50 results

    for me it seems the limit parameter at the end of the statement is ignored and a default value of 10 is used, but
    using select from where limit 5 returns 5 records…

    — answered September 21st 2010 by Lars Schwarz
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.