diff --git a/src/model/helpers.rs b/src/model/helpers.rs index bd33f0ef..fe73203d 100644 --- a/src/model/helpers.rs +++ b/src/model/helpers.rs @@ -732,9 +732,11 @@ pub async fn upsert_subscription_watcher( let start = Instant::now(); let mut txn = postgres.begin().await?; // https://stackoverflow.com/a/48730873 - sqlx::query::("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE") // TODO serialization errors not handled - .execute(&mut *txn) - .await?; + // Allow phantom reads; going above the watcher limit is not a big deal and handling + // serialization errors is not worth the effort + // sqlx::query::("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE") + // .execute(&mut *txn) + // .await?; let result = sqlx::query_as::(query) .bind(account.as_ref()) .bind(project)