* PR_Service. Sync database only on clean stop?
@ 2014-06-04 20:52 Ricardo Ribalda Delgado
2014-06-05 11:33 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Ribalda Delgado @ 2014-06-04 20:52 UTC (permalink / raw)
To: openembedded-core
Hello
I have been running happily with pr_service for two months.
Unfortunately, due to a power down the computer running the pr server
has stopped.
When I have started the server I have discovered that all the
information about PR was lost :S. I assumed this was due to a db
corruption, but I have later discovered that the database is not
synced after every insert.
I guess this is to improve the performance, but I don't think that
everybody prefer this behaviour, right now I have to remake and
distribute only 10 flashes, something reasonable, but it would have a
disaster later in our development cycle.
Is somebody working on a parameter for the db to be persistent? Would
a patch to implement this be considered?
Regards
--
Ricardo Ribalda
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PR_Service. Sync database only on clean stop?
2014-06-04 20:52 PR_Service. Sync database only on clean stop? Ricardo Ribalda Delgado
@ 2014-06-05 11:33 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2014-06-05 11:33 UTC (permalink / raw)
To: Ricardo Ribalda Delgado; +Cc: openembedded-core
On Wed, 2014-06-04 at 22:52 +0200, Ricardo Ribalda Delgado wrote:
> Hello
>
> I have been running happily with pr_service for two months.
> Unfortunately, due to a power down the computer running the pr server
> has stopped.
> When I have started the server I have discovered that all the
> information about PR was lost :S. I assumed this was due to a db
> corruption, but I have later discovered that the database is not
> synced after every insert.
>
> I guess this is to improve the performance, but I don't think that
> everybody prefer this behaviour, right now I have to remake and
> distribute only 10 flashes, something reasonable, but it would have a
> disaster later in our development cycle.
>
> Is somebody working on a parameter for the db to be persistent? Would
> a patch to implement this be considered?
The trouble if I remember rightly is that the way the queries work in
there, you can't tell if an update was made the database during the read
or not. The older code therefore synced on *every* read and this was a
significant bottleneck.
So patches would be considered and I agree the current behaviour is bad
but we need to be mindful of performance too. Some kind of idle sync on
a timer might be better than specific numbers for example, particularly
if we can query whether the data is "dirty" before running the sync
commands.
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-05 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 20:52 PR_Service. Sync database only on clean stop? Ricardo Ribalda Delgado
2014-06-05 11:33 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox