mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Testing old method
This commit is contained in:
parent
27b0575d7d
commit
2a7ff9cb4a
@ -1527,7 +1527,7 @@ public abstract class AbstractSqlEamDb implements EamDb {
|
|||||||
|
|
||||||
PreparedStatement bulkPs = null;
|
PreparedStatement bulkPs = null;
|
||||||
try {
|
try {
|
||||||
conn.setAutoCommit(false);
|
//conn.setAutoCommit(false);
|
||||||
|
|
||||||
// FUTURE: have a separate global_files table for each Type.
|
// FUTURE: have a separate global_files table for each Type.
|
||||||
String sql = "INSERT INTO %s(reference_set_id, value, known_status, comment) VALUES (?, ?, ?, ?) "
|
String sql = "INSERT INTO %s(reference_set_id, value, known_status, comment) VALUES (?, ?, ?, ?) "
|
||||||
@ -1540,12 +1540,12 @@ public abstract class AbstractSqlEamDb implements EamDb {
|
|||||||
bulkPs.setString(2, globalInstance.getMD5Hash());
|
bulkPs.setString(2, globalInstance.getMD5Hash());
|
||||||
bulkPs.setString(3, globalInstance.getKnownStatus().name());
|
bulkPs.setString(3, globalInstance.getKnownStatus().name());
|
||||||
bulkPs.setString(4, globalInstance.getComment());
|
bulkPs.setString(4, globalInstance.getComment());
|
||||||
//bulkPs.addBatch();
|
bulkPs.addBatch();
|
||||||
bulkPs.executeUpdate();
|
//bulkPs.executeUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
//bulkPs.executeBatch();
|
bulkPs.executeBatch();
|
||||||
conn.commit();
|
//conn.commit();
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
//conn.rollback();
|
//conn.rollback();
|
||||||
throw new EamDbException("Error inserting bulk artifacts.", ex); // NON-NLS
|
throw new EamDbException("Error inserting bulk artifacts.", ex); // NON-NLS
|
||||||
|
@ -652,7 +652,7 @@ final class ImportHashDatabaseDialog extends javax.swing.JDialog {
|
|||||||
dbManager.bulkInsertReferenceTypeEntries(globalInstances, contentType);
|
dbManager.bulkInsertReferenceTypeEntries(globalInstances, contentType);
|
||||||
globalInstances.clear();
|
globalInstances.clear();
|
||||||
}
|
}
|
||||||
if(numLines % 1000000 == 0){
|
if(numLines % 10000 == 0){
|
||||||
LOGGER.log(Level.INFO, "Database entries processed: " + numLines);
|
LOGGER.log(Level.INFO, "Database entries processed: " + numLines);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#Updated by build script
|
#Updated by build script
|
||||||
#Thu, 22 Jun 2017 08:50:21 -0400
|
#Fri, 25 Aug 2017 12:02:51 -0400
|
||||||
LBL_splash_window_title=Starting Autopsy
|
LBL_splash_window_title=Starting Autopsy
|
||||||
SPLASH_HEIGHT=314
|
SPLASH_HEIGHT=314
|
||||||
SPLASH_WIDTH=538
|
SPLASH_WIDTH=538
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#Updated by build script
|
#Updated by build script
|
||||||
#Thu, 22 Jun 2017 08:50:21 -0400
|
#Fri, 25 Aug 2017 12:02:51 -0400
|
||||||
CTL_MainWindow_Title=Autopsy 4.4.1
|
CTL_MainWindow_Title=Autopsy 4.4.1
|
||||||
CTL_MainWindow_Title_No_Project=Autopsy 4.4.1
|
CTL_MainWindow_Title_No_Project=Autopsy 4.4.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user