lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject HELP SolrJ: performance issue when adding index to SolrServer
Date Sun, 04 Jan 2015 09:55:20 GMT

hi all,

	thanks very much for any tip!!

	SolrCloud 4.10.2:
		3 solr instances in tomcat 7,
		3 zookeepers to manage solr config set,
		solr index data is stored on HDFS

	I have a web app, need  to build solr index when one user adds a new
post or comment the post.

	I use solrJ to add indexes to to SolrServer, below are my sample code
and time consumed,
	how to reduce the running time of below code? any tip to improve the
performance? any solution for this case? 200 ms is acceptable for us.

	//below codes take about 500 ms
	CloudSolrServer server = new CloudSolrServer(zkHost);

	//below codes take about 500 ms

	//below codes take about 1500 ms

	//I use autoSoftCommit=1000ms,since commit in code will take about 30



This e-mail may contain confidential and/or privileged information from Digital China and
is intended solely for the attention and use of the person(s) named above. If you are not
the intended recipient (or have received this e-mail in error), please notify the sender immediately
and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this email is strictly forbidden.
The content provided in this e-mail can not be guaranteed and assured to be accurate, appropriate
for all, and complete by Digital China, and Digital China can not be held responsible for
any error or negligence derived therefrom.
The internet communications through this e-mail can not be guaranteed or assured to be error
or virus-free, and the sender do not accept liability for any errors, omissions or damages
arising therefrom.

View raw message