# HG changeset patch # User Matthew Wild # Date 1584029444 0 # Node ID 83668e16b9a3f631e656312599acdaa79875912d # Parent 8c2c5b4fde3236ec0012dac51f9c8e9ccdede4f8 MUC: Switch to new storage format by default Changing the default setting of `new_muc_storage_format` from false to true. The code supports reading both formats since 0.11, but servers with MUCs stored using the new format will not be able to downgrade to 0.10 or earlier. The new format is clearer (less nesting for the most commonly-accessed data), and combined with the new map-store methods, allows for some operations to become more efficient (such as finding out which MUCs on a service a given user is affiliated with). diff -r 8c2c5b4fde32 -r 83668e16b9a3 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Mar 12 16:01:31 2020 +0000 +++ b/plugins/muc/muc.lib.lua Thu Mar 12 16:10:44 2020 +0000 @@ -1536,7 +1536,7 @@ }, room_mt); end -local new_format = module:get_option_boolean("new_muc_storage_format", false); +local new_format = module:get_option_boolean("new_muc_storage_format", true); function room_mt:freeze(live) local frozen, state;