Partitioning for proxy - too complex when one is having the first steps in partitioning the DB. Not at 1200 nvps shared among server and 5 proxies. One proxy alone doing 1200 nvps is another story but not in this particular use case.
Current maintenance is done every hour so it is obvious that partitioning should on hour base.
It is possible to even implement semi-partitioning in case sqlite db backend by create new file with proxy_history table content for each hour data.
Currently used number of hours data to be kept on the proxy can be number of partitions which needs to be kept.
All what is needed currently to add partitioning on the proxy is add call one alter table per hour with create new partition and another one with drop oldest partition. Syntax of such queries is not part of the SQL92 spec so those operations needs to be in db backed type dependent code. For each db backend it should be not more than 10 additional lines of code to use partitioning instead delete queries.
Ergo: additional complexity is close to null.
Comment