Commit f43bbe07 by hejiangming

周趋势图 增加索引

parent e886e158
......@@ -164,6 +164,7 @@ if __name__ == '__main__':
trend_sql = f"""
create table if not exists {trend_export_tb} partition of {trend_master_tb} for values from ('{year_str}') to ('{trend_year_next}');
create index if not exists {trend_export_tb}_st_key_idx on {trend_export_tb} using btree (st_key);
delete from {trend_export_tb} where date_info = '{date_info}';
"""
DBUtil.engine_exec_sql(engine, trend_sql)
......
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