susumu.yata
null+****@clear*****
Fri Dec 12 13:08:27 JST 2014
susumu.yata 2014-12-12 13:08:27 +0900 (Fri, 12 Dec 2014) New Revision: 7eb1435b0658722e74da7b2f760ce7a65d19270d https://github.com/groonga/grnxx/commit/7eb1435b0658722e74da7b2f760ce7a65d19270d Message: Enable incremental sorting only as the first sort condition. (#42) Modified files: lib/grnxx/impl/sorter.cpp Modified: lib/grnxx/impl/sorter.cpp (+1 -1) =================================================================== --- lib/grnxx/impl/sorter.cpp 2014-12-12 10:21:26 +0900 (4b56b5e) +++ lib/grnxx/impl/sorter.cpp 2014-12-12 13:08:27 +0900 (5081944) @@ -1266,7 +1266,7 @@ void Sorter::sort(Array<Record> *records) { Node *Sorter::create_node(SorterOrder &&order) try { if (order.expression->is_row_id()) { - if ((offset_ + limit_) < 1000) { + if (nodes_.is_empty() && ((offset_ + limit_) < 1000)) { if (order.type == SORTER_REGULAR_ORDER) { return new RowIDNodeS<RegularRowIDComparer>(std::move(order)); } else { -------------- next part -------------- HTML����������������������������...Download