我一直在寻找一个安静的api来git而且似乎找不到任何东西.我得到的最接近的是Github的api访问一些存储库信息.
那里还有其他任何要求吗?
我正在尝试为大于或空查询有效地使用索引。
查询示例如下:
select * from table where date > '2020-01-01' or date is null
我需要什么索引才能使 postgres 能够有效地做到这一点。我试着做一个索引
create index date on table (date asc nulls last)
但它似乎不起作用,我能得到的最好的是两个位图扫描(一个大于,一个为空)。