【问题标题】:Multi-variable indexes in postgrespostgres中的多变量索引
【发布时间】:2010-05-09 20:01:55
【问题描述】:

我正在查看一个应用程序,我将在其中执行很多 SELECTs,我试图找到 column_a = x AND column_b = y。 创建类似于以下内容的索引是否正确?

CREATE INDEX index_name ON table (column_a, column_b)

【问题讨论】:

    标签: database postgresql indexing


    【解决方案1】:

    Yes.

    【讨论】:

    • 太好了,谢谢。我搜索了 postgres 文档,但没有找到类似的东西。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-15
    • 1970-01-01
    • 2012-09-23
    • 2020-04-17
    • 2011-05-08
    • 2018-08-07
    相关资源
    最近更新 更多