diff --git a/index.bs b/index.bs index ad48d6f..0db7444 100644 --- a/index.bs +++ b/index.bs @@ -939,6 +939,21 @@ following: instead is created automatically when an `upgradeneeded` event is fired. +A [=/transaction=] has a durability hint. This is a hint to the user agent of whether to prioritize performance or durability when committing the transaction. The [=transaction/durability=] hint is one of the following: + +: {{"strict"}} +:: The user agent may consider that the [=/transaction=] has successfully [=transaction/committed=] only after verifying that all outstanding changes have been successfully written to a persistent storage medium. +: {{"relaxed"}} +:: The user agent may consider that the [=/transaction=] has successfully [=transaction/committed=] as soon as all outstanding changes have been written to the operating system, without subsequent verification. +: {{"default"}} +:: The user agent should use its default durability behavior for the storage [=/bucket=]. This is the default for [=/transactions=] if not otherwise specified. + + + A [=/transaction=] optionally has a cleanup event loop which is an [=event loop=]. @@ -957,21 +972,6 @@ a [=/transaction=] with [=transaction/mode=] {{"readonly"}}. A read/write transaction is a [=/transaction=] with [=transaction/mode=] {{"readwrite"}}. -A [=/transaction=] has a durability hint. This is a hint to the user agent of whether to prioritize performance or durability when committing the transaction. - -: {{"strict"}} -:: The user agent may consider that the [=/transaction=] has successfully [=transaction/committed=] only after verifying that all outstanding changes have been successfully written to a persistent storage medium. -: {{"relaxed"}} -:: The user agent may consider that the [=/transaction=] has successfully [=transaction/committed=] as soon as all outstanding changes have been written to the operating system, without subsequent verification. -: {{"default"}} -:: The user agent should use its default durability behavior for the storage [=/bucket=]. - - - ### Transaction Lifecycle ### {#transaction-lifecycle}