1
我想知道,例如,與使用「2016-05-05」相比,在redshift SQL上使用current_date
或get_date()
函數是否會降低查詢性能。redshift sql current_date get_date()性能問題
實施例1:
從 表 其中時間> = CURRENT_DATE選擇 * - 1 和時間< CURRENT_DATE
實施例2:
選擇 * 從表 其中時間> =「2016年5月8日」 和時間<「2016年5月9日」
將實施例1或實施例2有更好的表現?或者兩者都有相同的?
希望有人能提供一些線索它