Way to prevent transaction timeout?
问题 I'm running read-write transactions that are taking longer than 10 seconds, and they are timing out (failing with ABORTED errors). Is there a way to specify a longer timeout? 回答1: There is no way to specify the timeout for a transaction, but you have a few options: You could periodically issue an executeSql request every 5-8 seconds to keep your transaction alive. You can do a trivial query like SELECT 1 . More info on idle transactions is here. You could use a read-only transaction instead