[sqlite] journal file and its size

2015-07-15 Thread Mayank Kumar (mayankum)
-boun...@mailinglists.sqlite.org] On Behalf Of Clemens Ladisch Sent: Wednesday, July 15, 2015 5:43 AM To: sqlite-users at mailinglists.sqlite.org Subject: Re: [sqlite] journal file and its size Mayank Kumar (mayankum) wrote: > Sometimes we see the journal file not present on the system although > active t

[sqlite] journal file and its size

2015-07-15 Thread Mayank Kumar (mayankum)
Our application uses the following pragma with sqlite 3.7.7.1 PRAGMA synchronous=FULL; PRAGMA locking_mode=EXCLUSIVE"; I understand from the documentation that with exclusive mode the journal file is always created and never deleted until the exclusive mode is exited. Now my questions are:- -my

[sqlite] sqlite error code 1034

2015-06-23 Thread Mayank Kumar (mayankum)
read/write cycles it is possible that the memory is near the end of its life and needs to be replaced. Scott Doctor scott at scottdoctor.com On 6/23/2015 1:09 AM, Simon Slavin wrote: > On 23 Jun 2015, at 6:01am, Mayank Kumar (mayankum) > wrote: > >> Do you thin

[sqlite] sqlite error code 1034

2015-06-23 Thread Mayank Kumar (mayankum)
users-boun...@mailinglists.sqlite.org] On Behalf Of Simon Slavin Sent: Monday, June 22, 2015 6:11 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] sqlite error code 1034 On 23 Jun 2015, at 1:33am, Mayank Kumar (mayankum) wrote: > We once in a while see the following errors returns by

[sqlite] sqlite error code 1034

2015-06-23 Thread Mayank Kumar (mayankum)
Hi Sqlite users We once in a while see the following errors returns by sqlite for a database created on nvram. I am trying to understand, how are other users handling this error ? if fsync fails and sqlite api fails because of this issue, does sqlite internally retry before declaring it cannot c

[sqlite] Does vacuum command improves the sqlite3 write/store transactions

2015-05-04 Thread Mayank Kumar (mayankum)
Hi All I am thinking about measuring the performance of sqlite3 write transactions after lot of delete transactions have been performance but vacuum has not been performed versus when vacuum is performed. Wanted to get some ideas here on what people think theoretically should happen. I know it r

[sqlite] sqlite3_exec ROLLBACK command

2015-03-10 Thread Mayank Kumar (mayankum)
Hipp Sent: Monday, March 09, 2015 3:27 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] sqlite3_exec ROLLBACK command On 3/9/15, Mayank Kumar (mayankum) wrote: > Hi All > > We have some legacy code which calls sqlite3_exec with ROLLBACk every > time sqlite3_step fails

[sqlite] sqlite3_exec ROLLBACK command

2015-03-09 Thread Mayank Kumar (mayankum)
Hi All We have some legacy code which calls sqlite3_exec with ROLLBACk every time sqlite3_step fails irrespective what specific error occurred. I am wondering if this is a safe behavior or should I change this. Can it cause any sideeffects or memory leak or any other issues ? What is the righ

[sqlite] sqlite journal file question

2015-02-13 Thread Mayank Kumar (mayankum)
for a fully functional demo licence > > > On 13 February 2015 at 02:47, Richard Hipp wrote: >> On 2/12/15, Mayank Kumar (mayankum) wrote: >>> Hi All >>> >>> We have two systems which are running in active/standby >>> configuration. The active machin

[sqlite] sqlite journal file question

2015-02-12 Thread Mayank Kumar (mayankum)
Hi All We have two systems which are running in active/standby configuration. The active machine, is actively writing sqlite transactions to a file abcd.db. The standby is syncing the abcd.db file from the active machine on a communication channel and writing the delta records to the abcd.db

Re: [sqlite] why does gperftools shows sqlite3_memory_used as using the largest amount of memory

2014-10-06 Thread Mayank Kumar (mayankum)
does gperftools shows sqlite3_memory_used as using the largest amount of memory Mayank Kumar (mayankum) wrote: > -my application sqlite based runs for months before it might get > restarted -while its running there are places we need to execute the > following series :- > - sqlite3_bind

Re: [sqlite] why does gperftools shows sqlite3_memory_used as using the largest amount of memory

2014-10-02 Thread Mayank Kumar (mayankum)
SQLite Database Subject: Re: [sqlite] why does gperftools shows sqlite3_memory_used as using the largest amount of memory On Thu, Oct 2, 2014 at 2:21 PM, Mayank Kumar (mayankum) wrote: > Hi All > I am using sqlite 3.7.7.1 > > When profiling my application using gperftools-2.0, the pr

[sqlite] why does gperftools shows sqlite3_memory_used as using the largest amount of memory

2014-10-02 Thread Mayank Kumar (mayankum)
Hi All I am using sqlite 3.7.7.1 When profiling my application using gperftools-2.0, the profile always shows sqlite3_memory_used as the top user of memory. Why would sqlite3_memory_used use so much memory as it just reports the status of sqlite3_malloc/free. Are there known memory leaks in th

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-25 Thread Mayank Kumar (mayankum)
24, 2014 4:09 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" On 24 Jul 2014, at 8:21pm, Mayank Kumar (mayankum) wrote: > Thanks Simon. I found from the code, there are times when our process di

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-24 Thread Mayank Kumar (mayankum)
ocked" On 23 Jul 2014, at 8:56pm, Mayank Kumar (mayankum) wrote: > I have already enabled extended error codes but I am not seeing any extended > error codes being returned. I also enabled the error logging callback which > just prints the errorcode and the error message wh

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-23 Thread Mayank Kumar (mayankum)
atabase is locked" On 23 Jul 2014, at 7:27pm, Mayank Kumar (mayankum) wrote: > SQLITE_LOG: sqlite errcode=26, sqlite errmsg=file is encrypted or is not a > database > > The same error code I get in the return value of sqlite3_step. Just wondering > if there is a way I can get

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-23 Thread Mayank Kumar (mayankum)
corrupted -what line number or when was this issue first detected -what is the extended error code in this scenarios ? -mayank -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Mayank Kumar (mayankum) Sent: Friday, July 18

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-21 Thread Mayank Kumar (mayankum)
-what is the extended error code in this scenarios ? -mayank -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Mayank Kumar (mayankum) Sent: Friday, July 18, 2014 12:26 PM To: General Discussion of SQLite Database Subject: Re

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-18 Thread Mayank Kumar (mayankum)
in Sent: Tuesday, July 15, 2014 11:13 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" On 15 Jul 2014, at 6:58pm, Mayank Kumar (mayankum) wrote: > I was calling it after sqlite3_open,I will

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-15 Thread Mayank Kumar (mayankum)
SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/07/14 22:39, Mayank Kumar (mayankum) wrote: > The file system is ext3. I am calling this api > > sqlite3_confi

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-14 Thread Mayank Kumar (mayankum)
s restarts, it returns error "database is locked" what's your file system? looks like not related at all to sqlite but your code On Fri, Jul 11, 2014 at 4:31 PM, Mayank Kumar (mayankum) wrote: > Hi Richard > I have enabled error logging as suggested. Is there a way to test

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-11 Thread Mayank Kumar (mayankum)
to:sqlite-users-boun...@sqlite.org] On Behalf Of Richard Hipp Sent: Tuesday, July 08, 2014 1:05 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" On Tue, Jul 8, 2014 at 3:58 PM, Mayank Kumar (maya

Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-08 Thread Mayank Kumar (mayankum)
e.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Simon Slavin Sent: Tuesday, July 08, 2014 2:42 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" On 8 Jul 2014, at 8:58pm, Mayank Kumar (m

[sqlite] Sometimes when my process restarts, it returns error "database is locked"

2014-07-08 Thread Mayank Kumar (mayankum)
Hi All We have a process with a single sqlite db and a single connection to the database from a thread. From time to time our processs restarts and reopens the database or tries to create the database if it doesn't exists. Sometimes when the process restarts, we get the error "database is lock

Re: [sqlite] What is the recommended size we should keep aside for sqlite journal

2014-06-11 Thread Mayank Kumar (mayankum)
Behalf Of Richard Hipp Sent: Tuesday, June 10, 2014 4:21 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] What is the recommended size we should keep aside for sqlite journal On Tue, Jun 10, 2014 at 6:43 PM, Mayank Kumar (mayankum) wrote: > We have limited flash space and

[sqlite] What is the recommended size we should keep aside for sqlite journal

2014-06-10 Thread Mayank Kumar (mayankum)
We have limited flash space and we would like to know what is the recommended allocation for the sqlite db vs sqlite journal file. Should it be 50-50 or it doesn't matter. If there is no very less space remaining to write the complete journal file, what will happen. Any help is appreciated. Th

[sqlite] syncing two sqlite databases and db corruption

2013-11-13 Thread Mayank Kumar (mayankum)
Hi This is a follow up questions related to the db corruption question I asked a few days earlier. Our architecture is such that we have two roles primary and secondary and the secondary syncs(rsyncs) the sqlite db from the primary from time to time. Also the primary sometime sends records to s

Re: [sqlite] sqlite db getting corrupt on power outage scenarios

2013-11-07 Thread Mayank Kumar (mayankum)
power outage scenarios On 7 Nov 2013, at 11:50pm, Mayank Kumar (mayankum) wrote: > Are there known tools which tell us what data corrupted the db or some way of > removing only the corrupted section of the db ? Download the SQLite shell tool for your platform. Use .dump to dump the databas

Re: [sqlite] sqlite db getting corrupt on power outage scenarios

2013-11-07 Thread Mayank Kumar (mayankum)
scenarios On Thu, Nov 7, 2013 at 6:50 PM, Mayank Kumar (mayankum) wrote: > > I also saw some references to corruption being caused when the same db > is written to by 3.6 and then being written to by 3.7. Is that true, > because we have similar scenario where the db was originally w

Re: [sqlite] sqlite db getting corrupt on power outage scenarios

2013-11-07 Thread Mayank Kumar (mayankum)
getting corrupt on power outage scenarios On Wed, Nov 6, 2013 at 2:10 PM, Mayank Kumar (mayankum) wrote: > Hi Sqlite Users > I am running into a situation where sometimes after the power is > restored my sqlite db running on linux is corrupted. Here is what I > see with > integrity_che

[sqlite] sqlite db getting corrupt on power outage scenarios

2013-11-06 Thread Mayank Kumar (mayankum)
Hi Sqlite Users I am running into a situation where sometimes after the power is restored my sqlite db running on linux is corrupted. Here is what I see with integrity_check:- *** in database main *** Page 895: btreeInitPage() returns error code 11 On tree page 2 cell 765: Child page depth diffe