Browse Source

Add 3rd index on registry table.

Roberto Ostinelli 5 years ago
parent
commit
acb2b6a5d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/syn_backbone.erl

+ 1 - 1
src/syn_backbone.erl

@@ -73,7 +73,7 @@ create_registry_table() ->
     mnesia:create_table(syn_registry_table, [
     mnesia:create_table(syn_registry_table, [
         {type, set},
         {type, set},
         {attributes, record_info(fields, syn_registry_table)},
         {attributes, record_info(fields, syn_registry_table)},
-        {index, [#syn_registry_table.pid]},
+        {index, [#syn_registry_table.pid, #syn_groups_table.node]},
         {storage_properties, [{ets, [{read_concurrency, true}, {write_concurrency, true}]}]}
         {storage_properties, [{ets, [{read_concurrency, true}, {write_concurrency, true}]}]}
     ]).
     ]).