【问题标题】:Is it possible to create just the descending index using Objectify?是否可以使用 Objectify 仅创建降序索引?
【发布时间】:2015-07-12 09:56:55
【问题描述】:

在 Objectify 中,可以创建“部分索引”,只是在必要时添加索引条目,例如:

@Index(IfNotNull.class)
private Date nextDate;

这将创建两个索引条目,一个在升序索引中,第二个在降序索引中。

我想知道是否有一种方法可以创建只更新降序或升序索引的索引,但不能同时更新。

【问题讨论】:

    标签: google-app-engine indexing google-cloud-datastore objectify


    【解决方案1】:

    没有。这是 Google App Engine 的当前限制;你得到两个索引或都没有。

    【讨论】:

      猜你喜欢
      • 2018-06-25
      • 1970-01-01
      • 1970-01-01
      • 2011-02-11
      • 1970-01-01
      • 1970-01-01
      • 2013-05-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多