Kouhei Sutou 2019-04-05 11:33:58 +0900 (Fri, 05 Apr 2019) Revision: 78bfe771b452c24b883121e7a302ac4322bdf5b5 https://github.com/groonga/groonga/commit/78bfe771b452c24b883121e7a302ac4322bdf5b5 Message: tool many-segment: add support for INDEX_LARGE Modified files: tools/generate-many-segment-data.rb Modified: tools/generate-many-segment-data.rb (+8 -0) =================================================================== --- tools/generate-many-segment-data.rb 2019-04-05 11:33:22 +0900 (e0bec6308) +++ tools/generate-many-segment-data.rb 2019-04-05 11:33:58 +0900 (bc722a82a) @@ -22,6 +22,7 @@ n_records = 50_000_000 max_code_point = 0xFFFF n_characters_per_record = 100 use_section = false +use_index_large = false parser = OptionParser.new parser.on("--n-records=N", Integer, "[#{n_records}]") do |n| @@ -35,6 +36,10 @@ parser.on("--[no-]use-section", "[#{use_section}]") do |boolean| use_section = boolean end +parser.on("--[no-]use-index-large", + "[#{use_index_large}]") do |boolean| + use_index_large = boolean +end parser.parse! if use_section @@ -56,6 +61,9 @@ index_column_flags = "COLUMN_INDEX|WITH_POSITION" if columns.size > 1 index_column_flags += "|WITH_SECTION" end +if use_index_large + index_column_flags += "|INDEX_LARGE" +end puts(<<-COMMANDS) table_create Terms TABLE_HASH_KEY ShortText \ --normalizer NormalizerNFKC100 \ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190405/1e219ed1/attachment-0001.html>