mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +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",
|
"table": "filecache",
|
||||||
"primary_key": "fileid",
|
"primary_key": "fileid",
|
||||||
"shard_key": "storage",
|
"shard_key": "storage",
|
||||||
|
"companion_keys": ["file_id"],
|
||||||
"companion_tables": ["filecache_extended", "files_metadata"],
|
"companion_tables": ["filecache_extended", "files_metadata"],
|
||||||
"shards": [
|
"shards": [
|
||||||
{
|
{
|
||||||
|
|
@ -155,6 +156,7 @@ impl ServiceTrait for SingleShard {
|
||||||
"table": "filecache",
|
"table": "filecache",
|
||||||
"primary_key": "fileid",
|
"primary_key": "fileid",
|
||||||
"shard_key": "storage",
|
"shard_key": "storage",
|
||||||
|
"companion_keys": ["file_id"],
|
||||||
"companion_tables": ["filecache_extended", "files_metadata"],
|
"companion_tables": ["filecache_extended", "files_metadata"],
|
||||||
"shards": [
|
"shards": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue