Jump to content

Server response time question


Angelblue05

Recommended Posts

Angelblue05

Just a quick question about the API /Items.

 

With a specific parentId, is it faster for the server to return a response by pulling a list of specified Ids delimited by commas (let's say 50) or pulling the entire list of item found under a specific parentId?

I don't necessarily want every items under a specific parentId.

 

Here is what I'm trying to determine. Is there's a point where pulling the entire list is preferred over specifying X number of Ids to return when not wanting all child items? What will return the faster response in theory. I hope this makes sense :)

 

Thanks!

Link to comment
Share on other sites

Unless the discrepancy in number of items is very large, then the difference is going to be negligible so just use whichever makes more sense for your operation.

  • Like 1
Link to comment
Share on other sites

Angelblue05

Awesome! I was curious if it was really necessary to implement a limit of 50 add-on side. Doing the filtering app side might be less desirable then having the server do it (which will usually have more power to process this information faster vs having the firetv stick do it, for example) :)

Edited by Angelblue05
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...