graphql-engine/server/src-lib/Hasura
Vamshi Surabhi 98c853f4f7
use only required session variables in multiplexed queries for subscriptions (#4329)
* use only required session variables in multiplexed queries for subscriptions

This will reduce the load on Postgres when the result of a subscription
is not dependent on the session variables of the request

* add DerivingVia to the project wide extension list

* expose a more specific function to filter session variables

* improve documentation of session variables of a cohort

Co-Authored-By: Alexis King <lexi.lambda@gmail.com>

* fix bad rebase

* add test for checking only required session variables are used to make query

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
Co-authored-by: Karthikeyan Chinnakonda <karthikeyan@hasura.io>
2020-11-03 13:45:22 +05:30
..
Backends/Postgres server: generalize BoolExp (#6082) 2020-11-02 11:50:40 +00:00
Cache Support only the bounded cache, with default HASURA_GRAPHQL_QUERY_PLAN_CACHE_SIZE of 4000. Closes #5363 2020-07-28 19:02:44 -04:00
Eventing move NonEmptyText out of RQL.Types.Common (#6086) 2020-10-29 00:04:21 +00:00
GraphQL use only required session variables in multiplexed queries for subscriptions (#4329) 2020-11-03 13:45:22 +05:30
Incremental move NonEmptyText out of RQL.Types.Common (#6086) 2020-10-29 00:04:21 +00:00
RQL server: generalize BoolExp (#6082) 2020-11-02 11:50:40 +00:00
Server server: generalize BoolExp (#6082) 2020-11-02 11:50:40 +00:00
SQL server: move Hasura.SQL to Hasura.Backends.Postgres (#6053) 2020-10-27 13:53:49 +00:00
App.hs server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
EncJSON.hs server: heterogeneous execution of GraphQL queries (#5869) 2020-10-07 10:23:17 +00:00
HTTP.hs improve debug information in actions errors response (close #4031) (#4432) 2020-04-24 13:25:51 +05:30
Incremental.hs Build the GraphQL context after pruning dangling dependents 2020-01-30 18:17:29 -06:00
Logging.hs server: make more use of hlint (#6059) 2020-10-28 16:40:33 +00:00
Prelude.hs server: multiple sources: generalize LazyTx to LazyTxT (#6097) 2020-10-30 11:00:39 +00:00
Session.hs use only required session variables in multiplexed queries for subscriptions (#4329) 2020-11-03 13:45:22 +05:30
Tracing.hs Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00