Re: [sqlite] Problem: SQLite C++ Examples in the SQLite Documentation No Longer Work; Can't See Tables in Database

2007-07-02 Thread Ritesh Kapoor
Try connecting to this database using the SQLite command line browser and then check if the table 'tb1' exists. Most probably it dosen't. You can check which all tables have been created using the query - "select * from sqlite_master" Regards, Ritesh > I've had to do a complete backtrack today.

[sqlite] Sqlite In-Memory

2006-05-14 Thread Ritesh Kapoor
Hi, I've read a lot of mails on this group regarding use of Sqlite in-memory mode, for better performance. Currently we're using file based Sqlite DB and are facing lot of performance issues since the DB file is accessed a zillion times in a single program run. I've decided to try out the in-mem

[sqlite] SQLite NFS Problem compared to Other Db's

2006-07-21 Thread Ritesh Kapoor
eletion. Can anyone give me some more ideas to work with. Does this performance problem happen with the other DB's available as well? -- Regards, Ritesh Kapoor "living in interesting times..."

Re: [sqlite] implementing busy_handler callback

2006-08-22 Thread Ritesh Kapoor
ne on this mailing list would help you. However my experience with these handlers was that they made a mess of the code and later on the code was incomprehensible to someone looking at the code for the first time. -- Regards, Ritesh Kapoor "living in interesting times..." --- Begin Mes

Re: [sqlite] sqlite shared-cache mode usage

2006-08-28 Thread Ritesh Kapoor
remove all locking code in sqlite. I googled and did find some information related to NFS-locking on different mailing lists but all of this information wasn't connected. This seems to be a problem known for a long time now - Why hasn't it been fixed? -- Regards, Ritesh Kapoor &q

[sqlite] Perfornace using sqlite3_create_function() PI

2006-09-13 Thread Ritesh Kapoor
o keep a counter in your code. This worked for me since my case is similar. If anyone feels that this approach has any flaws then do criticise. -- Regards, Ritesh Kapoor "I can do it right, fast or cheap. Pick any two." - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] Aggregate Functions

2005-09-15 Thread Ritesh Kapoor
Hi, I am looking for some documentation alongwith examples on the Aggregate Functions concept in SQLite. Please let me know of some link where this concept is explained and with examples on the functions - sqlite3_create_function() sqlite3_aggregate_context() Thanks & Regards, Ritesh

[sqlite] Regarding String Comparision

2005-12-05 Thread Ritesh Kapoor
Hi, I am debugging a program which has a FileTable field called FileName declared as- "FileName varchar(1024) primary key" It stores filenames including their paths e.g. - "myDir1/testfile.txt" If I were to search in this FileTable in the column FileName for a string "testfile.txt" would it re

Re: [sqlite] Regarding String Comparision

2005-12-05 Thread Ritesh Kapoor
FileName like "%/testfile.txt" > > then you would get all files named "testfile.txt" regardless of their > path. sqlite will search for strings ending in "/testfile.txt". > > Martin > > Ritesh Kapoor schrieb: > > >Hi, > > > >I am

Re: [sqlite] Regarding String Comparision

2005-12-05 Thread Ritesh Kapoor
thanks for your help I got my work done ritesh On Mon, 2005-12-05 at 17:11, Rob Lohman wrote: > It seems we are both right :) > > sqlite> create table test (filename varchar(1000) primary key); > sqlite> insert into test (filename) values ('test'); > sqlite> select * from test where filename='t

[sqlite] How to retrieve names of all the tables in db

2005-12-27 Thread Ritesh Kapoor
2. Employee_Offical_Info 3. Corporate_Info Is there a way to retrieve the names of the tables assuming that I do have a connection open with the DB. Thanks, Ritesh Kapoor Senior Software Engineer Atrenta Pvt. Ltd.

[sqlite] How to optimize select queries

2006-01-02 Thread Ritesh Kapoor
e on all of its columns? 3. Please note that the columns on which comparisions are done are of varchar type also so do indexes work on them as well? 4. Any other suggestions which the experienced folks would have come across. Thanks and Regards, Ritesh Kapoor Atrenta Pvt. Ltd.

Re: [sqlite] How to optimize select queries

2006-01-05 Thread Ritesh Kapoor
thnx my queries are running in 1/3rd the time now!! ritesh On Mon, 2006-01-02 at 22:22, Dennis Cote wrote: > Ritesh Kapoor wrote: > > >Hi, > > > >I need to optimize/speed up my 'select' queries. The query creates > >about 3 to 6 left joins from 7 differ

[sqlite] Database Locked Error

2006-01-30 Thread Ritesh Kapoor
my machine. Can anyone suggest what the problem is with sqlite when running apps on different machines. I couldn't find much related to this on the sqlite website. Thanks & Regards, Ritesh Kapoor

Re: [sqlite] Database Locked Error

2006-01-30 Thread Ritesh Kapoor
EMAIL PROTECTED] wrote: > Ritesh Kapoor <[EMAIL PROTECTED]> wrote: > > > > Can anyone suggest what the problem is with sqlite when running apps on > > different machines. > > This happens sometimes when NFS us misconfigured so that it > does not support fcntl() fil

Re: [sqlite] Database Locked Error

2006-01-31 Thread Ritesh Kapoor
s there a way to find out which process is doing this through the entries in /proc directory? Thanks, Ritesh On Mon, 2006-01-30 at 19:31, [EMAIL PROTECTED] wrote: > Ritesh Kapoor <[EMAIL PROTECTED]> wrote: > > Yes. > > My machine has NFS and the machines I log onto also have NFS.

Re: [sqlite] Database Locked Error

2006-01-31 Thread Ritesh Kapoor
Please ommit line #18 from the sequence of statements and then reply. Thanks Ritesh On Tue, 2006-01-31 at 16:42, Ritesh Kapoor wrote: > Regarding the configuration of NFS - > I have two machines with NFS on them. > - if i run the app on machine 1 it works properly > - now when i ru

Re: [sqlite] Database Locked Error

2006-01-31 Thread Ritesh Kapoor
f commands and will get back to you. Thanks for you help. If you have any other suggestions then please do let me know Thanks Ritesh On Tue, 2006-01-31 at 18:02, Christian Smith wrote: > On Tue, 31 Jan 2006, Ritesh Kapoor wrote: > > >Regarding the configuration of NFS - > >I h

Re: [sqlite] Database Locked Error

2006-01-31 Thread Ritesh Kapoor
: > On Tue, 31 Jan 2006, Ritesh Kapoor wrote: > > >Regarding the configuration of NFS - > >I have two machines with NFS on them. > >- if i run the app on machine 1 it works properly > >- now when i run the app on machine 2 it works properly > > > >But if I

[sqlite] Database Locked Error... problem still persists

2006-02-01 Thread Ritesh Kapoor
06-01-30 at 19:31, [EMAIL PROTECTED] wrote: > Ritesh Kapoor <[EMAIL PROTECTED]> wrote: > > Yes. > > My machine has NFS and the machines I log onto also have NFS. But if > > this is the problem then why dosen't it appear on my machine when I run > > the app. > >

Re: [sqlite] File locking additions

2006-03-07 Thread Ritesh Kapoor
In case the designer knows that the DB file will be accessed by a single program-thread throught the run - then there should be some sort of flag indicating that SQLITE should execute minimum locking-related code. We were facing problems with flock over NFS mounted file systems. Since we din't ne