-
Notifications
You must be signed in to change notification settings - Fork 498
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
No-op transactions still cause Rx emissions #1422
Comments
The same logic that was in SQLBrite is in SQLDelight so both should have received updates for this mutation. I'm not sure we'll ever specifically handle this case, but we plan to handle things like primary keys so that a query affecting one key will not trigger an update for another. |
Alright, perhaps I should come up with a repro project because I specifically have database integration tests to cover this scenario and they started failing once I upgraded to SqlDelight 1. |
Finally have a repro project. Please see https://github.com/mhernand40/SqlDelight-Issue-1422-Repro |
I guess in my particular scenario, I was using SqlBrite's In the case of AndroidSqliteDriver, there is no |
Yea, theres unfortunately no guarantee across all sql dialects that we have an API returning the # of results changed. Going to close this one out |
Take the following querying for example:
With SqlBrite, if all
messages
already haveseen = 1
, and thisUPDATE
transaction is run, any RxObservables
observingmessage
queries will not be notified since the transaction, in this case, is a no-op. However, with SqlDelight1.1.3
theObservables
are still notified.The text was updated successfully, but these errors were encountered: