You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In graphql-ruby, I've found that every single field of a type is not asynchronizly resolved
# the sleep method represents any blocking method call or IOfield:a,types.Stringdoresolve->(o,args,c){sleep3"a"}endfield:b,types.Stringdoresolve->(o,args,c){sleep3"b"}endfield:c,types.Stringdoresolve->(o,args,c){sleep3"c"}endfield:d,types.Stringdoresolve->(o,args,c){sleep3"d"}end
if a query like
test {
abcd
}
the time cost could be
Completed 200 OK in 12602ms (Views: 0.6ms)
seems like the time cost is 3 * 4 = 12 second
I want to get the field concurrently, then the time cost could be nearly 3 second. Is it a good way to use your gem ? Or I should submit a new issue in graphql-ruby 😂
The text was updated successfully, but these errors were encountered:
graphql-ruby support Lazy Execution which sounds like what you want. If you don't need batching, then I would just use that directly. That Lazy Execution feature was an extraction from this gem and thus is used by this gem.
If you decide to use this gem for batching but want to load the batch queries concurrently, then #45 is the relevant issue.
In
graphql-ruby
, I've found that every single field of a type is not asynchronizly resolvedif a query like
the time cost could be
Completed 200 OK in 12602ms (Views: 0.6ms)
seems like the time cost is 3 * 4 = 12 second
I want to get the field concurrently, then the time cost could be nearly 3 second. Is it a good way to use your gem ? Or I should submit a new issue in graphql-ruby 😂
The text was updated successfully, but these errors were encountered: