DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
billychow

关于 Datastore 的一个限制

  •  
  •   billychow · Nov 8, 2010 · 4606 views
    This topic created in 5665 days ago, the information mentioned may be changed or developed.
    BadArgumentError: First ordering property must be the same as inequality filter property, if specified for this query;


    Properties In Inequality Filters Must Be Sorted Before Other Sort Orders
    http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html

    不知道各位碰到这个问题的同学是怎么解决的?
    实在是没想到居然会有这个限制,早前怎么没看清楚呢?
    1 replies    1970-01-01 08:00:00 +08:00
    keakon
        1
    keakon  
       Nov 8, 2010
    数据量不大的话,全部取出来自己在内存里排序吧

    我是基本上不用不等于操作和排序,这样就不需要建复合索引了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
    ♥ Do have faith in what you're doing.