Usergrid: how to stream a long list of connections?

40 Views Asked by At

Let's say I have some collection called someentity that has connections to other entities via a verb subscribedto. For a particular entity with id some_id, I'd like to pull all the entities that are connected to this entity via the subscribedto verb. I can do that via this GET request:

/org/app/someentity/some_id/subscribedto

However, I'm not sure how I stream or page through this data if there are thousands or more results. I'm not getting back a cursor or anything. Is having a huge number of connections to a particular entity something that's just not a smart thing to do with Usergrid?

1

There are 1 best solutions below

0
andrew.w.lane On

This is currently a bug. I did not phrase my original question well, as I did not make it clear that this is a bug for INCOMING connections. See here: https://issues.apache.org/jira/browse/USERGRID-1310