[sqlite] "Safe" maximum numbers of tables?

2006-03-23 Thread Tito Ciuro
Hello, I was reading the FAQ and I came across this statement: In practice, SQLite must read and parse the original SQL of all table and index declarations everytime a new database file is opened, so for the best performance of sqlite3_open() it is best to keep down the number of

Re: [sqlite] retreving the column names for a query (PERL)

2006-03-23 Thread Scott Leighton
On Wednesday 22 March 2006 9:43 pm, Jim Dodgen wrote: > for a query like > > select * from a join b on a.x = b.z > > anyone know how to get all the column names of the fields that would be > returned from the query? > > I am using the DBD::SQLite PERL module > This script shows you how to get

Re: [sqlite] SQLite Busy status from DBD::SQLite

2006-03-23 Thread Sripathi Raj
Thanks Clark. On 3/20/06, Clark Christensen <[EMAIL PROTECTED]> wrote: > > use DBI; > $dbh = DBI->connect("dbi:SQLite:dbname=mydb.db","","", {AutoCommit=>0, > RaiseError=>1, ShowErrorStatement=>1}); > eval {$dbh->do("insert into mytable (mycolumn) values ('my data')") }; > if ($@) { > if ($@

Re: [sqlite] Mozilla and SQLlite

2006-03-23 Thread Brett Wilson
You could write a standalone XUL application and run it using XULRunner, for example. That would link directly to sqlite. If you were thinking of local web pages, you would need to write some kind of fake web server running on a local port that would link to sqlite. Brett On 3/23/06, Vishal

[sqlite] Mozilla and SQLlite

2006-03-23 Thread Vishal Kashyap
Hi , How to write applications with mozilla rendering forms and SQLlite as database as a stand alone application. -- With Best Regards, Vishal Kashyap. http://www.vishal.net.in

Re: [sqlite] Different column names in callback function on Linux vs. Windows

2006-03-23 Thread Derrell . Lipman
"Iulian Popescu" <[EMAIL PROTECTED]> writes: > How can I set the pragma values - is this something that can be done at > build time or is it only possible at runtime by executing the command > (before running any SELECT statements)? I don't have the sqlite3 source in front of me, but in sqlite2,

RE: [sqlite] Different column names in callback function on Linux vs. Windows

2006-03-23 Thread Iulian Popescu
How can I set the pragma values - is this something that can be done at build time or is it only possible at runtime by executing the command (before running any SELECT statements)? Thanks, Iulian. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [sqlite] Sqlite3_reset needed?

2006-03-23 Thread drh
"CARTER-HITCHIN, David, FM" <[EMAIL PROTECTED]> wrote: > Hi Richard, > > > You should be in the habit of calling sqlite3_reset() on each query > > as soon as that query finishes. Otherwise the query *might* leave a > > read-lock on the database file and thus prevent subsequent write > >

RE: [sqlite] Sqlite3_reset needed?

2006-03-23 Thread CARTER-HITCHIN, David, FM
Hi Richard, > You should be in the habit of calling sqlite3_reset() on each query > as soon as that query finishes. Otherwise the query *might* leave a > read-lock on the database file and thus prevent subsequent write > operations for working correctly. What about if one just uses sqlite3_exec

Re: [sqlite] Scrolling thru an index

2006-03-23 Thread JP
Jay Sprenkle wrote: My application is geared towards users who want to find a specific name in a list of names, and then want to have the possibility to scroll backwards or forwards. For example, if I search for "Sprenkle" I want to show the user a window with "Sprenkle" in the middle, preceded

Re: [sqlite] support for table partitioning?

2006-03-23 Thread John Stanton
Christian Smith wrote: On Tue, 21 Mar 2006, Miha Vrhovnik wrote: The database already knows exactly where to look for each table when all the tables are in the same file. All it has to do is "lseek()" to the appropriate spot. How does moving tables into separate files help this or make it

Re: [sqlite] Performance & database design

2006-03-23 Thread John Stanton
Very large indices could well be a problem when mmap'd, but in our case we used one file per index and the problem did not occur, even in the largest datasets. The OS's used were Solaris, AIX, Linux and Windows on big anf little end machines. Not HPUX fortunately :-). As you correctly

[sqlite] Sql/mm

2006-03-23 Thread Chisvert, Javier
Hi, I would like to ask if the SQLite db is sql/mm compliant? Many thanks Xavier Chisvert Valero Institute of Information Systems & Information Management JOANNEUM RESEARCH Forschungsgesellschaft mbH Steyrergasse 17,

Re: [sqlite] support for table partitioning?

2006-03-23 Thread Christian Smith
On Tue, 21 Mar 2006, Miha Vrhovnik wrote: >>The database already knows exactly where to look for each >>table when all the tables are in the same file. All it >>has to do is "lseek()" to the appropriate spot. How does >>moving tables into separate files help this or make it any >>faster? >

Re: [sqlite] Sqlite3_reset needed?

2006-03-23 Thread drh
"Merijn Vandenabeele" <[EMAIL PROTECTED]> wrote: > Hi, > > I prepare a statement in my constructor's class. Later, when I need data > from that statement, I bind all variables and step trough the results. Is it > necessary to reset the statement when I need other data from that statement > or is

Re: [sqlite] select query over 2 tables

2006-03-23 Thread drh
Marco Fretz <[EMAIL PROTECTED]> wrote: > hello > > i'm new in sqllite. in mysql you can select from more then 1 table by > listing them in the form statement. but that does not work in sqlite. > > > sqlite> select * from Tsqljobs Thosts WHERE Tsqljobs.host_id = ^

Re: [sqlite] Performance & database design

2006-03-23 Thread Christian Smith
On Wed, 22 Mar 2006, John Stanton wrote: >Our approach to byte order independence was fairly simple, and worked >well with a mmap'd index. It involved keeping the just word pointers in >a local byte ordered block if the machine were a different Endian. The >overhead was next to insignificant.

RE: [sqlite] Sqlite3_reset needed?

2006-03-23 Thread Merijn Vandenabeele
Correct. Thanks for your help! Merijn -Oorspronkelijk bericht- Van: Martin Engelschalk [mailto:[EMAIL PROTECTED] Verzonden: donderdag 23 maart 2006 12:13 Aan: sqlite-users@sqlite.org Onderwerp: Re: [sqlite] Sqlite3_reset needed? Hi, if i understand you right, the bound variables

Re: [sqlite] Sqlite3_reset needed?

2006-03-23 Thread Martin Engelschalk
Hi, if i understand you right, the bound variables occur in your where class. If you want to start stepping through your result set with newly bound variables, you have to reset the statement first. You can also reset the statement, put new values into the already bound variables and start

[sqlite] Sqlite3_reset needed?

2006-03-23 Thread Merijn Vandenabeele
Hi, I prepare a statement in my constructor's class. Later, when I need data from that statement, I bind all variables and step trough the results. Is it necessary to reset the statement when I need other data from that statement or is this done automatically when I bind new variables? Best

Re: [sqlite] select query over 2 tables

2006-03-23 Thread Roger
Marco this is a syntax error most likely. You should either specify a JOIN, either INNER JOIN,LEFT JOIN etc as follows Select * >From Tsqljobs AS T INNER JOIN Thosts AS Th ON T.host_id=Th.host_id or you can leave out AS and do : Select * >From Tsqljobs LEFT JOIN Thosts ON

[sqlite] select query over 2 tables

2006-03-23 Thread Marco Fretz
hello i'm new in sqllite. in mysql you can select from more then 1 table by listing them in the form statement. but that does not work in sqlite. sqlite> select * from Tsqljobs Thosts WHERE Tsqljobs.host_id = Thosts.id; SQL error: no such column: Tsqljobs.host_id is there any documentation

Re: [sqlite] Performance & database design

2006-03-23 Thread Micha Bieber
Thursday, March 23, 2006, 03:44:11, Teg wrote: > Hello Jay, > Best way I've found to get great performance out of strings and > vectors is to re-use the strings and vectors. String creation speed is > completely dependent on allocation speed so, by re-using the strings, > you only grow the ones