Trying to get some SQLcode sorted out.
I am pulling down a XML file from Firebase Storage. That is working great.
I can parse the update into my Sqlite DB on the phone.
What I am trying to figure out is how NOT to keep duplicating the same records over and over.
The update file will change very seldom.
I have tried REPLACE INTO and it still just adds a new record.
Does Sqlite support checking if a record exists, then UPDATE it verses just adding a new record every time?
I tried just dropping the table and re-creating it but it takes to long.
I am pulling down a XML file from Firebase Storage. That is working great.
I can parse the update into my Sqlite DB on the phone.
What I am trying to figure out is how NOT to keep duplicating the same records over and over.
The update file will change very seldom.
I have tried REPLACE INTO and it still just adds a new record.
Does Sqlite support checking if a record exists, then UPDATE it verses just adding a new record every time?
I tried just dropping the table and re-creating it but it takes to long.