mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
configure companion keys
This commit is contained in:
parent
1effe0bf99
commit
d12d7cf592
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ impl ServiceTrait for Sharding {
|
|||
"table": "filecache",
|
||||
"primary_key": "fileid",
|
||||
"shard_key": "storage",
|
||||
"companion_keys": ["file_id"],
|
||||
"companion_tables": ["filecache_extended", "files_metadata"],
|
||||
"shards": [
|
||||
{
|
||||
|
|
@ -155,6 +156,7 @@ impl ServiceTrait for SingleShard {
|
|||
"table": "filecache",
|
||||
"primary_key": "fileid",
|
||||
"shard_key": "storage",
|
||||
"companion_keys": ["file_id"],
|
||||
"companion_tables": ["filecache_extended", "files_metadata"],
|
||||
"shards": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue