在 SQL 中,如果我想要查询的所有内容(在 where 条件中)是字段不为空时,是否所有关于索引的常见考虑都适用?
我可以应用索引的特殊配置来涵盖这种特定情况吗?
例如:
select id from Accesses where token is not null;
token如果我必须搜索特定的令牌值,是否值得尽可能多地添加索引?
token
我的数据库是 Postgres。
postgresql performance
performance ×1
postgresql ×1