Post

1 follower Follow
0
Avatar

get items by app id limit?

Is there a limit to the amount of items that can be returned with one $api->item->getItems($id) call.

I seem to only get back 20 items and i just want to rule limits out rather than blame my code; i might upset its feelings.

James Trusler Answered

Please sign in to leave a comment.

7 comments

0
Avatar

You cannot get all items without limit, but you can get up to 500 at a time. Just set limit to 500.

Christian Holm 0 votes
0
Avatar

But I don't think you want to do all the 500 in one take (if there is a user waiting), in my experience 100 rows takes several seconds.

Carl-Fredrik Herö 0 votes
0
Avatar

Item filtering is a pretty heavy operation, and the raw data transferred for 500 items is pretty significant. We page by 30 inside the product, which is about what works well for human display. For machine syncing 100 is fine.

Christian Holm 0 votes