我有關於曲折合併連接算法的問題。在文章https://developers.google.com/appengine/articles/indexselection,提到Appengine ZigZag合併加入Algo
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>
原因我向您發送電子郵件,因爲當我嘗試這在開發和生產中,不起作用並且需要分別具有不同的索引。可以詳細說明嗎?