[Groonga-commit] pgroonga/pgroonga at 8e14012 [master] Reduce IO read

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Nov 7 22:45:34 JST 2016


Kouhei Sutou	2016-11-07 22:45:34 +0900 (Mon, 07 Nov 2016)

  New Revision: 8e140125be224a294b4b5f76fe90518cb2070089
  https://github.com/pgroonga/pgroonga/commit/8e140125be224a294b4b5f76fe90518cb2070089

  Message:
    Reduce IO read

  Modified files:
    src/pgroonga.c

  Modified: src/pgroonga.c (+2 -4)
===================================================================
--- src/pgroonga.c    2016-11-07 22:44:11 +0900 (6c5aa18)
+++ src/pgroonga.c    2016-11-07 22:45:34 +0900 (6540f46)
@@ -4075,9 +4075,6 @@ pgroonga_canreturn_raw(Relation index,
 	TupleDesc desc;
 	unsigned int i;
 
-	if (PGrnIndexStatusGetMaxRecordSize(index) >= INDEX_SIZE_MASK)
-		return false;
-
 	desc = RelationGetDescr(index);
 	for (i = 0; i < desc->natts; i++)
 	{
@@ -4093,7 +4090,8 @@ pgroonga_canreturn_raw(Relation index,
 		}
 	}
 
-	return true;
+	return PGrnIndexStatusGetMaxRecordSize(index) <
+		PGRN_INDEX_ONLY_SCAN_THRESHOLD_SIZE;
 }
 
 /**
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index