这是indexloc提供的服务,不要输入任何密码
Skip to content

do not update all rows of a table on upsert when action is update (fix #342) #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 4, 2018

Conversation

rakeshkky
Copy link
Member

No description provided.

@rakeshkky rakeshkky added s/ok-to-merge Status: This pull request can be merged to master c/server Related to server p/urgent Immediate action required labels Sep 1, 2018
@rakeshkky rakeshkky self-assigned this Sep 1, 2018
@rakeshkky rakeshkky requested a review from 0x777 September 1, 2018 07:30
@coco98
Copy link
Contributor

coco98 commented Sep 1, 2018

@0x777 In this case if I provide multiple objects with a different schema then there's a query error per Rakesh. Is that ok for now?

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-344.herokuapp.com

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-344.herokuapp.com

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-344.herokuapp.com

(Just cols, _) -> RI.CCUpdate constraint cols
(Nothing, Just CAIgnore) -> RI.CCDoNothing $ Just constraint
(Nothing, Just CAUpdate) -> RI.CCUpdate constraint inpCols
(Nothing, Nothing) -> RI.CCDoNothing $ Just constraint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also be same as the previous case, when update_columns is missing, we take it that they want to update the specified columns

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-344.herokuapp.com

@0x777 0x777 merged commit 0a3f68a into hasura:master Sep 4, 2018
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-344.herokuapp.com is deleted

shahidhk pushed a commit to shahidhk/graphql-engine that referenced this pull request Sep 11, 2018
update cli reference doc, microservices doc, close hasura#344
hasura-bot pushed a commit that referenced this pull request Feb 12, 2021
* Stop shutdown handler retaining the whole serveCtx

This might look like quite a strange way to write the function but it's
the only way I could get GHC to not capture `serveCtx` in the shutdown
handler.

Fixes the metadata issue in #344

* Force argumentNames

The arguments list is often empty so we end up with a lot of duplicate
thunks if this value is not forced.

* Increase sharing in nullableType and nonNullableType

The previous definitions would lead to increased allocation as it would
destory any previously created sharing. The new definition only allocate
a fresh constructor if the value is changed.

* Add memoization for field parsers

It was observed in #344 that many parsers were not being memoised which
led to an increase in memory usage. This patch generalisation memoisation so
that it works for FieldParsers as well as normal Parsers.

There can still be substantial improvement made by also memoising
InputFieldParsers but that is left for future work.

Co-authored-by: Antoine Leblanc <antoine@hasura.io>

* [automated] stylish-haskell commit

* changelog

Co-authored-by: Phil Freeman <paf31@cantab.net>
Co-authored-by: Antoine Leblanc <antoine@hasura.io>
Co-authored-by: Stylish Haskell Bot <stylish-haskell@users.noreply.github.com>
Co-authored-by: Phil Freeman <phil@hasura.io>
GitOrigin-RevId: 36255f7
hasura-bot pushed a commit that referenced this pull request Mar 13, 2024
V3_GIT_ORIGIN_REV_ID: 279110b4bb1605baa36a2770e5ec0d1530944ed5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server p/urgent Immediate action required s/ok-to-merge Status: This pull request can be merged to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants