tarantool / graphql.0

Set of adapters for GraphQL query language to the Tarantool data model
Other
20 stars 3 forks source link

Support query execution timeout #25

Closed kostja closed 6 years ago

kostja commented 6 years ago

Allow to interrupt execution of a complex query when a timeout expires.

Totktonada commented 6 years ago

Why we can not just create a fiber and kill it by timeout?

Khatskevich commented 6 years ago

The first implementation can be the following:

Cons:

Disses:

Khatskevich commented 6 years ago

Key points:

  1. use clock.monotonic64() because it is fast and it changes without yields
  2. place the hook to accessor.new(), and move to tgql.compile after #59