[Groonga-mysql-commit] mroonga/mroonga at 7874750 [master] storage: reduce index size for multiple column index for non full text search

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 23 22:02:35 JST 2016


Kouhei Sutou	2016-12-23 22:02:35 +0900 (Fri, 23 Dec 2016)

  New Revision: 787475036e7d19085bb66fd9ac6cd380e73ef730
  https://github.com/mroonga/mroonga/commit/787475036e7d19085bb66fd9ac6cd380e73ef730

  Message:
    storage: reduce index size for multiple column index for non full text search
    
    It doesn't need section information because it just uses only one
    section.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2016-12-19 00:22:24 +0900 (9528edf)
+++ ha_mroonga.cpp    2016-12-23 22:02:35 +0900 (5f493ae)
@@ -3825,7 +3825,7 @@ int ha_mroonga::storage_create_index(TABLE *table, const char *grn_table_name,
     if (tokenizer) {
       index_column_flags |= GRN_OBJ_WITH_POSITION;
     }
-    if (is_multiple_column_index) {
+    if (is_multiple_column_index && (key_info->flags & HA_FULLTEXT)) {
       index_column_flags |= GRN_OBJ_WITH_SECTION;
     }
   }
-------------- next part --------------
HTML����������������������������...
Download 



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