我正在尝试使用where子句优化select语句,以便只选择具有私有源IP地址和公共目标IP地址的行。我有两个类型为source_ip和destination_ip的列。.%' and text(destination_ip)~ E'^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..+';
怎样才能使上面的where子句更有效
我希望优化一个查询,以获得每个时间间隔(日、周等)的活动帐户,其中active在帐户的开始日期和结束日期上定义。UNNEST(dates) as date_itemselect date_item, count(1) from all_dates group by date_item
我还使用了每天的子选择,它在6-