You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "cmd (JIRA)" <ji...@apache.org> on 2010/11/12 17:48:15 UTC

[jira] Commented: (SOLR-1352) DIH: MultiThreaded

    [ https://issues.apache.org/jira/browse/SOLR-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931442#action_12931442 ] 

cmd commented on SOLR-1352:
---------------------------

Hi Russell Teabeault and  my problem was serious:

<dataConfig>
	<dataSource driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.0.5:1521:orcl" user="TESTSOLR" password="TESTSOLR" />
	<document name="doc">
		<entity name="A" transformer="ClobTransformer" threads="8" query="select * from A " pk="id">
                        <field column="COL1" clob="true" name="COL1" />
			<field column="COL1" clob="true" name="COL2" />

                        <entity name="B"  query="select * from B WHERE AID='${A.ID}' " pk="id" processor="CachedSqlEntityProcessor">
                        <field column="COL3" clob="true" name="COL2" />
			<field column="COL4" clob="true" name="COL4" />
			</entity>
		</entity>
	</document>
</dataConfig>

TABLE A:10 million rows
TABLE B:20 million rows

the dih processor is very unstable.always throws exception 
"Closed Connection: next"
please provide some information to me .thanks.



> DIH: MultiThreaded
> ------------------
>
>                 Key: SOLR-1352
>                 URL: https://issues.apache.org/jira/browse/SOLR-1352
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1352.patch, SOLR-1352.patch, SOLR-1352.patch
>
>
> It has been a long pending request to make DIH multithreaded. Now that we have implemented most of the features , the next best thing we can aim for is performance. DIH should be able to take advantage of multiple cores in a box .I expect the configuration to be as follows
> {code:xml}
> <entity name="foo" threads="4">
> <!--more stuff goes here-->
> </entity>
> {code}
> at the entity where the threads is specified it should fork into multiple threads. If the threads<2 it executes w/o forking. In debug mode it automatically becomes singlethreaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org