1👍
✅
I believe the BEGIN queries are a work around in the sqlite backend to deal with quirks of sqlite. I think you’ll will see one BEGIN for every write that you do outside of a transaction.
If you want to dig into the code further, start here.
So there isn’t anything you can do about the queries, but I wouldn’t worry, I doubt they will have any noticeable effect on performance. If you are really worried about db performance of writes then you can try a different database backend.
Source:stackexchange.com