mkhludnev commented on a change in pull request #1171: SOLR-13892: Add 'top-level' docValues Join implementation URL: https://github.com/apache/lucene-solr/pull/1171#discussion_r370548790
########## File path: solr/core/src/test/org/apache/solr/search/TestJoinQueryPerformance.java ########## @@ -0,0 +1,235 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.solr.search; + +import java.io.BufferedReader; +import java.io.FileReader; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; + +import com.google.common.collect.Lists; +import org.apache.solr.SolrTestCaseJ4; +import org.apache.solr.client.solrj.SolrQuery; +import org.apache.solr.client.solrj.SolrRequest; +import org.apache.solr.client.solrj.impl.HttpSolrClient; +import org.apache.solr.client.solrj.response.QueryResponse; +import org.apache.solr.common.SolrInputDocument; +import org.junit.BeforeClass; +import org.junit.Test; + + +public class TestJoinQueryPerformance extends SolrTestCaseJ4 { + // Dictionary used to load String data + private static final String DICT_PATH = "/usr/share/dict/words"; + private static final int NUM_DICT_TERMS = 235886; + private static final String[] LOADED_DICTIONARY = new String[NUM_DICT_TERMS]; + + // Performance run parameters: Indexing + private static final String FROM_COLLECTION_NAME = "user_acls"; + private static final int NUM_FROM_DOCS = 5050; // 1 + 2 + 3 + 4 + ... + 100 + private static final String TO_COLLECTION_NAME = "products"; + private static final int NUM_TO_DOCS = 500000; + private static final int PERMISSION_CARDINALITY = 50000; // 50K unique groups/roles/whatever + private static int BATCH_SIZE = 500; + private static int NUM_COMMITS = 500; + private static final int VAL_MAX = 1000; + private static final int USER_MAX = 100; + + private static String COLLECTION_NAME= "foo"; + + /* + * As I start out here, I think I'll want a few different axes. + * - "from" collection matches (with "to" matches held constant) + * - "to" collection matches (with "from" matches held constant) + * + * So I think I should index a finite number of docs + */ + + @BeforeClass + public static void setUpCluster() throws Exception { + loadDictionary(); + //loadCollectionData(DType.USER); Review comment: Shouldn't it load at least anything? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org