orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Mechanism to fetch all states from a grain (Like Select * from table)

Open anikethnagansurya opened this issue 7 years ago • 6 comments

anikethnagansurya avatar Jul 26 '19 09:07 anikethnagansurya

Do you mean to fetch state from multiple grains of a grain type?

sergeybykov avatar Jul 26 '19 16:07 sergeybykov

No, meant to say like if we create grains with Guid n populate the states of that created grain and now want to fetch all the grains states at once from that silo.

anikethnagansurya avatar Jul 26 '19 16:07 anikethnagansurya

Doesn't "we create grains with Guid n populate the states" refer to multiple grains?

sergeybykov avatar Jul 26 '19 17:07 sergeybykov

Yes. Sorry for the confusion, can we fetch the states for multiple grains at once.

anikethnagansurya avatar Jul 26 '19 18:07 anikethnagansurya

In the application code you can fan-out calls to multiple grains in parallel, and then merge the responses after they arrive. There's no built-in support for that though.

sergeybykov avatar Jul 26 '19 18:07 sergeybykov

Ok. Thank you 😊

anikethnagansurya avatar Jul 27 '19 03:07 anikethnagansurya