I have to query an external resource for each row.
Unfortunately nothing I can do in a single update query.
Would mean keeping a lot of data manually in memory.
On Mon, May 28, 2018 at 2:33 AM Abroży Nieprzełoży <
abrozynieprzelozy314...@gmail.com> wrote:
> BTW why not to update all rows by
age-
>From: sqlite-users [mailto:sqlite-users-
>boun...@mailinglists.sqlite.org] On Behalf Of Deon Brewis
>Sent: Sunday, 27 May, 2018 16:50
>To: SQLite mailing list
>Subject: Re: [sqlite] database locked on select
>
>By one connection doing SELECT and UPDATE, do you mean multi-
BTW why not to update all rows by single update query?
2018-05-27 20:30 GMT+02:00, Torsten Curdt :
> I am doing a select, then iterate through the resultset and on each row
> call update on that row.
> I am using the golang driver and ran into the issue that on the update the
>
There is no multi threading. Just a single thread and only one
connection/handle.
While iterating through the resultset I am also trying to execute an update
for every row. Along the lines of:
resultset = db.exec(`select`)
foreach row in resultset {
db.exec(`update`)
}
I don't want to
On 27 May 2018, at 11:49pm, Deon Brewis wrote:
> By one connection doing SELECT and UPDATE, do you mean multi-threaded mode
> and using the connection from 2 threads?
A connection cannot lock the database against itself. If you are doing two
operations with one connection,
SQLite mailing list <sqlite-users@mailinglists.sqlite.org>
Subject: Re: [sqlite] database locked on select
On 27 May 2018, at 7:30pm, Torsten Curdt <tcu...@vafer.org> wrote:
> I am doing a select, then iterate through the resultset and on each
> row call update on that row.
> I
On 27 May 2018, at 7:30pm, Torsten Curdt wrote:
> I am doing a select, then iterate through the resultset and on each row
> call update on that row.
> I am using the golang driver and ran into the issue that on the update the
> database is still locked from the select.
Are you
I am doing a select, then iterate through the resultset and on each row
call update on that row.
I am using the golang driver and ran into the issue that on the update the
database is still locked from the select.
https://github.com/mattn/go-sqlite3/issues/569
I have read
8 matches
Mail list logo