Commit 61d0e497 authored by Xavier Thompson's avatar Xavier Thompson

slapproxy: Make rows unique for forwarded requests

Avoid bloating the proxy database due to each instance processing
adding the same entries for forwarded requests as duplicate rows
again and again, leading to unbounded growth.
parent e9276809
...@@ -54,5 +54,6 @@ CREATE TABLE IF NOT EXISTS partition_network%(version)s ( ...@@ -54,5 +54,6 @@ CREATE TABLE IF NOT EXISTS partition_network%(version)s (
CREATE TABLE IF NOT EXISTS forwarded_partition_request%(version)s ( CREATE TABLE IF NOT EXISTS forwarded_partition_request%(version)s (
partition_reference VARCHAR(255), -- a.k.a source_instance_id partition_reference VARCHAR(255), -- a.k.a source_instance_id
master_url VARCHAR(255) master_url VARCHAR(255),
CONSTRAINT uniq PRIMARY KEY (partition_reference, master_url)
); );
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment