locked
This should be easy ... Lync Query running on server is returning all 30000 records when Skip == 500 RRS feed

  • Question

  • I am perplexed and puzzled ;(

    I am running the lync query on the server which I intend to only bring back 500 of 30K worth of data but it's actually reading all 30K records. 

    My assumption is that this query will not run until the foreach statement.  What am I doing wrong?

    skip is initially zero and take is set to 500.. Then 500 is added to skip an each subsequent call.  Shouldn't this resolve to returning only 500 records at a time?


    Johnny Larue, http://www.softlandingcanada.com



    • Edited by John Kears Thursday, October 31, 2013 4:19 PM
    Thursday, October 31, 2013 4:09 PM

Answers

  • Well I am once again an idiot ...

    The proper way to do this in LS is to create a Query and modify the PreprocessQuery to include the skip and take along with any other query need ..


    Johnny Larue, http://www.softlandingcanada.com

    • Marked as answer by John Kears Thursday, October 31, 2013 5:43 PM
    Thursday, October 31, 2013 5:43 PM