我对之字形合并连接算法有疑问。在文章https://developers.google.com/appengine/articles/indexselection中提到
Index(Photo, owner_id, -date),
Index(Photo, size, -date)
可以结合成为
Index(Photo, owner_id, size, -date) ;
我的测试如下:
<datastore-index kind="KindTest1" ancestor="false" source="auto">
<property name="hideIt" direction="asc"/>
<property name="voteCount" direction="desc"/>
</datastore-index>
<datastore-index kind="KindTest1" ancestor="false" source="auto">
<property name="hideIt" direction="asc"/>
<property name="createdByDate" direction="asc"/>
</datastore-index>
can these 2 indexes combine to become,
<datastore-index kind="KindTest1" ancestor="false" source="auto">
<property name="hideIt" direction="asc"/>
<property name="createdByDate" direction="asc"/>
<property name="voteCount" direction="desc"/>
</datastore-index>
我给你发电子邮件的原因是因为当我在开发和生产中尝试这个时,它不起作用并且需要每个单独的索引。可以详细说明吗?