Skip to content

Commit

Permalink
Incremental removal is not really supported for mssql
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jan 10, 2023
1 parent 68aeff8 commit 42a246d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions big_tests/tests/domain_removal_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ end_per_suite(Config) ->
%%%===================================================================
%%% Group specific setup/teardown
%%%===================================================================
init_per_group(Group, Config)
when Group =:= mam_removal_incremental; Group =:= inbox_removal_incremental ->
case rpc(mim(), mongoose_rdbms, db_engine, [host_type()]) of
odbc -> {skip, mssql_not_supported_for_incremental_removals};
_ -> do_init_per_group(Group, Config)
end;
init_per_group(Group, Config) ->
do_init_per_group(Group, Config).

do_init_per_group(Group, Config) ->
case mongoose_helper:is_rdbms_enabled(host_type()) of
true ->
HostTypes = domain_helper:host_types(),
Expand Down
3 changes: 3 additions & 0 deletions doc/modules/mod_inbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ How often the automatic garbage collection runs over the bin.

Domain deletion can be an expensive operation, as it requires to delete potentially many thousands of records from the DB. By default, the delete operation deletes everything in a transaction, but it might be desired, to handle timeouts and table locks more gracefully, to delete the records in batches. This limit establishes the size of the batch.

!!! Note
Not supported by MSSQL.

### `modules.mod_inbox.reset_markers`
* **Syntax:** array of strings, out of `"displayed"`, `"received"`, `"acknowledged"`
* **Default:** `["displayed"]`
Expand Down
3 changes: 3 additions & 0 deletions doc/modules/mod_mam.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ See [Message Archive Management extensions](../open-extensions/mam.md).

Domain deletion can be an expensive operation, as it requires to delete potentially many thousands of records from the DB. By default, the delete operation deletes everything in a transaction, but it might be desired, to handle timeouts and table locks more gracefully, to delete the records in batches. This limit establishes the size of the batch.

!!! Note
Not supported by MSSQL.

#### `modules.mod_mam.db_jid_format`

* **Syntax:** string, one of `"mam_jid_rfc"`, `"mam_jid_rfc_trust"`, `"mam_jid_mini"` or a module implementing `mam_jid` behaviour
Expand Down

0 comments on commit 42a246d

Please sign in to comment.