I have problem with asynchronous call of INSERT in db.transaction when parsing large CSV.
Problem #1:
while(...parse CSV...) {
db.transaction{
...tx.executeSql(INSERT...
}
}
...it will enter the last row X times (X ... number of rows in CSV)
Problem #2:
db.transaction{
while(...parse CSV...) {
...tx.executeSql(INSERT...
}
}
...it will reach some limit and will not insert anything (if I don't use while, but for like <10, it works, but this limit is quite small).
It is similar to this question: Web SQL Database + Javascript loop, but the recursion will not help here.
Thanks!