Avoiding too-many-ros-containers-error
Hallo, My name is Katrin and I work for 24/7 media in Germany. Recently we switched from infinidb to vertica. Everything was fine. But a few weeks ago, we recognized an error during our load processes: ERROR 5065: Too many ROS containers exist for the following projections ... For the first time a manual mergeout solved the problem. But now the problem occurs more often and for more projections. Now my question: We have an aggregation table called pts_agg_url_report, partitioned by month, with two projections, segmented by a hash. Every hour, we delete the last 4 days with a statement like "delete from pts_agg_url_report where agg_date >= (current_date -4)". Then we insert 4 days data with a statement like "insert into pts_agg_url_report(agg_date, ...) select view_date, ... from pts_raw_data_delivery_detail where view_date >= (current_date -4) group by view_date" Is it possible to avoid the too-many-rows-error or reducing the frequency of the too-many-rows-error by doing the following? 1. partitioning pts_agg_url_report by date (!!! not day in year, because we need to store data of 2 years !!!) 2. Every hour dropping the relevant partitions and inserting like before. A mergeout for the aggregation table takes a few hours. Another question: Can we still load data in these tables during a mergeout? Or do we have to wait until the mergeout is finished? Thank you. Kind regards Katrin
0
Comments