From 17c9d8edfc372b0cf8196be98f91fcd93651875b Mon Sep 17 00:00:00 2001 From: Mohsen Vakilian Date: Fri, 5 Aug 2011 06:44:09 -0500 Subject: [PATCH] Committed the database changes more frequently. I increased the number of commit operations from one to eight. Several small commits seem to be more reliable that a single huge commit. Made Git ignore the files that ANT automatically generates for org.hsqldb. This commit belongs to issue #290. --- .../src/edu/illinois/codingspectator/csvtosql/MapPersister.java | 1 + plug-ins/org.hsqldb/ant/.gitignore | 1 + 2 files changed, 2 insertions(+) create mode 100644 plug-ins/org.hsqldb/ant/.gitignore diff --git a/plug-ins/edu.illinois.codingspectator.csvtosql/src/edu/illinois/codingspectator/csvtosql/MapPersister.java b/plug-ins/edu.illinois.codingspectator.csvtosql/src/edu/illinois/codingspectator/csvtosql/MapPersister.java index b05827dfe..be5f1b947 100644 --- a/plug-ins/edu.illinois.codingspectator.csvtosql/src/edu/illinois/codingspectator/csvtosql/MapPersister.java +++ b/plug-ins/edu.illinois.codingspectator.csvtosql/src/edu/illinois/codingspectator/csvtosql/MapPersister.java @@ -118,6 +118,7 @@ public void loadCSVToSQL(String filePath) throws IOException, SQLException { if (progress % 8000 == 0) { progress= 0; System.out.println(); + connection.commit(); } } } diff --git a/plug-ins/org.hsqldb/ant/.gitignore b/plug-ins/org.hsqldb/ant/.gitignore new file mode 100644 index 000000000..c4ffae946 --- /dev/null +++ b/plug-ins/org.hsqldb/ant/.gitignore @@ -0,0 +1 @@ +downloads/