Skip to content

Commit

Permalink
clear search data before parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Feb 13, 2024
1 parent 42cea06 commit 4bae51e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ private void parseIntoCaseSearchStorage(SQLiteDB caseSearchDb, UserSqlSandbox ca
XmlPullParserException, IOException {
try {
DbUtils.setAutoCommit(caseSearchDb, false);
caseSearchIndexTable.delete();
caseSearchIndexTable.createTable();
CaseInstanceXmlTransactionParserFactory factory = new CaseInstanceXmlTransactionParserFactory(
caseSearchSandbox, caseSearchIndexTable);
caseSearchStorage.initStorage();
caseSearchStorage.removeAll();
ParseUtils.parseIntoSandbox(responeStream, factory, true, true);
DbUtils.commit(caseSearchDb);
} catch (Exception e) {
Expand Down

0 comments on commit 4bae51e

Please sign in to comment.