User 73ad691ca3
01-02-2013 13:00:50
Dear Chemaxon Team,
We are trying to import the structure and data from a .sdf file to the Jchem structure table using 'jchem .net API'.
Our each .sdf file consists of 100,000 records. We need to import the structure and other columns data to the database table in a single shot.
While importing the .sdf file, the Jchem has taken around 2 hours and 15 minutes to import 30,000 records in the .sdf file, Still there are 70,000 compounds need to be imported from the sdf file ..., we do not know how much time the jchem is going to take to import the remaining compounds.
The Jchem is taking too much of time to import the .sdf file using importer class. We need to find the way to import the .sdf file in less time.
How can we achieve the import of structures from .sdf file in a very less time? This is very urgent work to implement. Just we need to push the structure data from .sdf file to a table in quick time...
Here is the sample code we use to import the .sdf file:
--------------------------------------------------------
private static string databaseImport(string inputFile, ConnectionHandler connectionHandler, string structTableName, bool setHaltOnError, int linesToCheck, string connections)
{
try
{
Importer importer = new Importer();
importer.setInput(inputFile);
importer.setConnectionHandler(connectionHandler);
importer.setTableName(structTableName);
importer.setLinesToCheck(linesToCheck);
importer.setHaltOnError(setHaltOnError);
importer.setDuplicateImportAllowed(UpdateHandler.DUPLICATE_FILTERING_OFF);
importer.setFieldConnections(connections);
// Gather information about file
importer.init();
// Import molecules into database table
int imported = importer.importMols();
return imported.ToString();
}
catch
{
throw;
}
}
--------------------------------------------------------------------
Please look into this issue and reply us ASAP.
Please let me know if you require any other information regarding this issue.
--
Thanks & Regards,
D. Senthil kumar vijai.