Re: [sqlite] Difficulty with sqlite3.3.6 under VisualStudio.net

2006-09-19 Thread thomas . l
Hi Dixon Dixon Hutchinson wrote: > I am getting lots of errors of the sort: > > 'size_t' to 'int', possible loss of data > > I could just turn off the warnings, but that seems kind of wreckless. > The output from the compile is attached. Try this (But this is not really necessary.): #pragma w

Re: [sqlite] How to speed up the performance in LIMIT & OFFSET?

2006-09-19 Thread Michael Scharf
Hi, I had a similar problem at a larger scale. One trick is to create a temporary table from where you can fetch the rows quickly: Create Table foo(id INTEGER PRIMARY KEY AUTOINCREMENT, x TEXT); create index idx_foo on foo(x); insert into foo(x) values('text001'); : : insert into fo

RE: [sqlite] Difficulty with sqlite3.3.6 under VisualStudio.net

2006-09-19 Thread Richard Stern
The warnings are normal and unless you want to rewrite sqlite, not much you can do about them. Not sure about the run-time check failure _ From: Dixon Hutchinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 20 September 2006 8:41 AM To: sqlite-users@sqlite.org Subject: [sqlite] Diff

[sqlite] Difficulty with sqlite3.3.6 under VisualStudio.net

2006-09-19 Thread Dixon Hutchinson
I am having difficulty getting a clean build under Visual Studio.  I believe I have followed the advice given at http://www.sqlite.org/cvstrac/wiki?p=VsNetSolution. I am getting lots of errors of the sort: ...\\sqlite3\\vdbemem.c(194) : warning C4267: '=' : conversion from 'size_t' to 'int', p

Re: [sqlite] Optimistic concurrency control

2006-09-19 Thread Christian Smith
Mikey C uttered: Hi, Maybe I didn't make the question clear. I'm not talking about locking and multiple writers. I'm talking about optimistic concurrency control in a disconnected environment. Two processes (say a webserver). One reads some data and presents it to a user (open - read - clo

Re: [sqlite] Optimistic concurrency control

2006-09-19 Thread Thomas . L
Hello On Tue, 19 Sep 2006 11:24:02 -0700 (PDT), you wrote: >Maybe I didn't make the question clear. I'm not talking about locking and >multiple writers. I'm talking about optimistic concurrency control in a >disconnected environment. > >IF anyone has changed the data since you last read i

Re: [sqlite] how sqlite works?

2006-09-19 Thread Cesar David Rodas Maldonado
Thanks for your answer Ms. Smith! On 9/19/06, Christian Smith <[EMAIL PROTECTED]> wrote: Cesar David Rodas Maldonado uttered: > I meen, If SQLite has two index and very large Index (about 10.000.000each > one) how do i merge it, I mean (index1 = index2 for every one and limit it > in thousand)

Re: [sqlite] Optimistic concurrency control

2006-09-19 Thread Mikey C
Hi, Maybe I didn't make the question clear. I'm not talking about locking and multiple writers. I'm talking about optimistic concurrency control in a disconnected environment. Two processes (say a webserver). One reads some data and presents it to a user (open - read - close). The other re

Re: [sqlite] building sqlite.lib

2006-09-19 Thread Matthew Veenstra
Hello, If you google something like, "making a lib from a def file" you will find a lot of information and it will help you understand how to do this. It has been a while since I have done it, but you will easily find what you are looking for. Matt tribalmedia On Sep 11, 2006,

[sqlite] speeding SQLite on a cross-join over two tables

2006-09-19 Thread P Kishor
I have the following two tables and related indexes -- CREATE TABLE IF NOT EXISTS pt ( id INTEGER PRIMARY KEY, xREAL, yREAL, attr TEXT ) CREATE INDEX ix_pt_x ON pt (x) CREATE INDEX ix_pt_y ON pt (y) CREATE TABLE IF NOT EXISTS py ( id

Re: [sqlite] how sqlite works?

2006-09-19 Thread Christian Smith
Cesar David Rodas Maldonado uttered: I meen, If SQLite has two index and very large Index (about 10.000.000 each one) how do i merge it, I mean (index1 = index2 for every one and limit it in thousand). Understand? I guess not. Are you trying to do an INNER JOIN merger on the two indexes? SQ

Re: [sqlite] Optimistic concurrency control

2006-09-19 Thread Christian Smith
Mikey C uttered: What are peoples thoughts on implementing optimistic concurrency control in SQLite? Not an option. SQLite has a single writer database locking protocol which can't handle multiple writers, so the issue of concurrency control is moot. One way is modify the where clause

Re: [sqlite] How to speed up the performance in LIMIT & OFFSET?

2006-09-19 Thread Christian Smith
PY uttered: Hi All, I have a problem about LIMIT & OFFSET profermance. Due to the limitation of memory, I could not get all of the query result at a time. In our soluction, we use the LIMIT and OFFSET to avoid the problem of memory issue. we observed the performance of LIMIT & OFFSET, it looks

[sqlite] Optimistic concurrency control

2006-09-19 Thread Mikey C
What are peoples thoughts on implementing optimistic concurrency control in SQLite? One way is modify the where clause to compare every column being updated, old value to new value. This makes the SQL cumbersome. Microsoft SQL Server has a column data type named TIMESTAMP/ROWVERSION which is da

Re: [sqlite] reg:blob data reading

2006-09-19 Thread Dennis Jenkins
Dennis Jenkins wrote: Teg wrote: Hello Dennis, I'm, probably going to be offering optional encryption too. Why did you chose to use the SQLite encryption extensions versus just encrypting the blobs after you read them back in and before you write them out? 1) We wanted the entire database

Re: [sqlite] reg:blob data reading

2006-09-19 Thread Dennis Jenkins
Teg wrote: Hello Dennis, I'm, probably going to be offering optional encryption too. Why did you chose to use the SQLite encryption extensions versus just encrypting the blobs after you read them back in and before you write them out? 1) We wanted the entire database encrypted. There is

Re: [sqlite] How to speed up the performance in LIMIT & OFFSET?

2006-09-19 Thread Jay Sprenkle
On 9/18/06, PY <[EMAIL PROTECTED]> wrote: Hi All, I have a problem about LIMIT & OFFSET profermance. Is there any chance you can use an index on your select? If it has an index it might be able to calculate the position of the offset and not have to read the entire result set. This is just a gu

Re: [sqlite] How to speed up the performance in LIMIT & OFFSET?

2006-09-19 Thread Chandrashekar H S
Hi Are u using precompiled queries? If not try using it... On 9/19/06, PY <[EMAIL PROTECTED]> wrote: Hi All, I have a problem about LIMIT & OFFSET profermance. Due to the limitation of memory, I could not get all of the query result at a time. In our soluction, we use the LIMIT and OFFSET to a

Re: [sqlite] Quotation handling bug?

2006-09-19 Thread He Shiming
- Original Message - From: "Robert Simpson" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 19, 2006 2:19 PM Subject: RE: [sqlite] Quotation handling bug? Single quotes are supposed to be used for string literals, and double quotes/brackets for identifiers such as table names and colum