Re: [sqlite] seeking answers for a few questions about indexes

2006-05-29 Thread Joe Wilson
> The right way to do this query is: > > SELECT * FROM vals2d WHERE rowid IN > (SELECT rowid FROM vals2d WHERE x=1 > UNION ALL SELECT rowid FROM vals2d WHERE y=1); Unfortunately this tranform does not work on views or subqueries due to NULL rowids. sqlite> create table abc(a,b,c);

Re: [sqlite] Re: LIMIT and paging records

2006-05-29 Thread Lindsay
Igor Tandetnik wrote: > > By the way, for most queries you will find that the execution time > grows as the OFFSET grows. To implement OFFSET X, the engine would > enumerate records from the beginning and simply ignore the first X-1. > Retrieving the last pageful often takes almost as long as

Re: [sqlite] LIMIT and paging records

2006-05-29 Thread John Stanton
This problem is as old as data processing. The "page N of M" situation which requires that the entire data set be read to get M. Once you have read the entire set you have many options on how you handle your window on that dataset. You could use local storage for it all or take advantage of

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread John Stanton
[EMAIL PROTECTED] wrote: "Fred Williams" <[EMAIL PROTECTED]> wrote: How about some form of automated(?) sequence where: New subscriber submits subscription request. System sends "query" message to subscriber address. New subscriber sends "confirmation" message within

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Paul Nash
1200 is a modest number for a mailing list . Expect it to go up to 3-4000 as SQLite gets more popular. One reason for the lists popularity is the friendliness of the list members and their willingness to respond to basic SQL queries. At some stage the list could be split into two. One for

Re: [sqlite] where I can download sqlite 3.2.8

2006-05-29 Thread rbundy
All the filenames you need to modify are on the download page. Regards. rayB ** PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING * *** Confidentiality and Privilege Notice *** This e-mail is intended only to be read or used by the

Re: [sqlite] LIMIT and paging records

2006-05-29 Thread John Stanton
To perform a count one has to read the entire dataset regardless. Why not implement your logic within your own program, using prepare and step and ceasing to unload data from the columns when you hit your predefined limit? JS Mikey C wrote: Hi, I think this has been discussed before, but I

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Alex Roston
This is an excellent idea. Alex René Tegel wrote: Hi, Seen the popularity of sqlite, i think 1200 subscribers is very reasonable. Lots of people track mailing lists, only contributing rarely but nevertheless are interested. You could consider a system that requires moderation by the

[sqlite] Re: LIMIT and paging records

2006-05-29 Thread Igor Tandetnik
Mikey C wrote: I don't think you really understand what I'm trying to say. Web based systems require paging that does not iterate through all records. I understand perfectly what you want. All I'm saying is there are solid technical reasons why SQLite (and really any other SQL engine)

RE: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Robert Simpson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, May 29, 2006 7:25 AM > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] Purging the mailing list roles. Was: > Please Restore Your Account Access > > Such a system is already in place. Please

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Markus Hoenicka
Clay Dowling <[EMAIL PROTECTED]> was heard to say: > You might want to consider reworking the check mechanism, using the > capture mechanism that a lot of web forums and blogs use. Users must > type in text presented on a web page in the form of a graphic. That > will put a stop to the

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Clay Dowling
[EMAIL PROTECTED] wrote: "Fred Williams" <[EMAIL PROTECTED]> wrote: How about some form of automated(?) sequence where: New subscriber submits subscription request. System sends "query" message to subscriber address. New subscriber sends "confirmation" message within

Re: [sqlite] LIMIT and paging records

2006-05-29 Thread drh
"A. Pagaltzis" <[EMAIL PROTECTED]> wrote: > > At the same time, to my knowledge, a query which has an `ORDER > BY` clause always has to produce all results before it can apply > a `LIMIT` to the result set, so at least in that case, what you > want should be possible. > Depends. SQLite will

Re: [sqlite] LIMIT and paging records

2006-05-29 Thread A. Pagaltzis
* Mikey C <[EMAIL PROTECTED]> [2006-05-29 17:10]: > Do you imagine Google loads 8 billions records into memory when > the user is just viewing 10 results in page 5 after a broad > search? You can’t ask Google for more than the first 1,000 hits on any search. (Go ahead and try.) There is a reason

Re: [sqlite] LIMIT and paging records

2006-05-29 Thread Mikey C
I don't think you really understand what I'm trying to say. Web based systems require paging that does not iterate through all records. What is required is a means to LIMIT the results read from the database but at the same time know how many records WOULD have been returned if the query was

Re: [sqlite] Re: Check for duplicate values in database

2006-05-29 Thread Derrell . Lipman
"Anish Enos Mathew" <[EMAIL PROTECTED]> writes: > Igor, I know that it will show error when we try to insert a value which > is already there in the database when that field is a primary key. But > I want to check it out and I don't want that number to be inserted into > the database. I was

RE: [sqlite] Re: Check for duplicate values in database

2006-05-29 Thread Anish Enos Mathew
Igor, I know that it will show error when we try to insert a value which is already there in the database when that field is a primary key. But I want to check it out and I don't want that number to be inserted into the database. I was asking about a method which finds this. I don't want to

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Jalil Vaidya
--- [EMAIL PROTECTED] wrote: > And yet somehow, the spammer still managed to get > signed up > using a "paypal.com" address. How did they do that? Its probably very easy to screen scrape the message to harvest every link in the confirmation message and do a wget on it! I must admit that I do

RE: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Fred Williams
Here's an example: --- Hi Fred Willisams, Please click on the following link to activate your account. Then start Worksite CD and click 'Yes' to get current prices at your local Home Depot: Please Click Here! Thank you for using The Home Depot Worksite CD. If you need help with Worksite

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread drh
"Fred Williams" <[EMAIL PROTECTED]> wrote: > How about some form of automated(?) sequence where: > > New subscriber submits subscription request. > > System sends "query" message to subscriber address. > > New subscriber sends "confirmation" message within reasonable time >

Re: [sqlite] Check for duplicate values in database

2006-05-29 Thread Dennis Cote
Anish Enos Mathew wrote: I want to insert 100 records into the database randomly. Here "seq_number" is the primary key. Is there any method by which I can check whether a randomly selected number which I am going to insert in the database already exists in the database or not?

[sqlite] Re: Check for duplicate values in database

2006-05-29 Thread Igor Tandetnik
Anish Enos Mathew <[EMAIL PROTECTED]> wrote: I created a table as follows. create table data_table(seq_number integer primary key,data text,curr_date text)",NULL, NULL, NULL); I want to insert 100 records into the database randomly. Here "seq_number" is the primary

[sqlite] Re: LIMIT and paging records

2006-05-29 Thread Igor Tandetnik
Mikey C wrote: However if LIMIT is added to the SQL, I do not get a count of the records that the SQL select would have produced if I had not limited the query with LIMIT. I could do two selects with the same WHERE restriction, one with SELECT COUNT(*) and the other with SELECT field1, field2,

RE: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Fred Williams
How about some form of automated(?) sequence where: New subscriber submits subscription request. System sends "query" message to subscriber address. New subscriber sends "confirmation" message within reasonable time period. List access granted on receipt of

RE: [sqlite] SQLite as R data store and spatial data maybe ?

2006-05-29 Thread Eric Franks
How do I unsubscribe? I don't want to keep getting these emails. -Original Message- From: Noel Frankinet [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 9:23 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] SQLite as R data store and spatial data maybe ? [EMAIL PROTECTED]

Re: [sqlite] SQLite as R data store and spatial data maybe ?

2006-05-29 Thread Noel Frankinet
[EMAIL PROTECTED] wrote: Noel Frankinet <[EMAIL PROTECTED]> wrote: You might want to take a look at DRH's proposal, http://www.sqlite.org/cvstrac/wiki?p=VirtualTables which looks like it would make it easier for the R community to implement the sort of interface you're talking about.

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Clay Dowling
[EMAIL PROTECTED] wrote: In order to be able to send messages to this mailing list, the spammer above had to subscribe. To subscribe means that he had to respond to an email that was sent to the subscription address. Since his email address does not exist, I'm wondering how he managed to pull

Re: [sqlite] Purging the mailing list roles.

2006-05-29 Thread A. Pagaltzis
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2006-05-29 12:50]: > I wonder if I need to implement some kind of mechanism that > requires you to either send a message to the mailing list or > else renew your subscription every 3 months. Does anybody have > any experience with other mailing lists that

AW: Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread michael . ruck
I second this. I don't mind having to post or refresh my subscription every once in a while. It would however be important for me to receive a notification to refresh my subscription instead of just silently removing my subscription. HTH, Mike >Hi, > >I think many of the 1217 active

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread René Tegel
Hi, Seen the popularity of sqlite, i think 1200 subscribers is very reasonable. Lots of people track mailing lists, only contributing rarely but nevertheless are interested. You could consider a system that requires moderation by the list administrator for each first message a newly

Re: [sqlite] Purging the mailing list roles. Was: Please Restore Your Account Access

2006-05-29 Thread Eugene Wee
Hi, I think many of the 1217 active subscribers are people like me who tune in to the list but only contribute once in a blue moon. I do not have any objection to a "send email to keep your subscription active" idea, but I have never seen that used in the other mailing lists that I

RE: [sqlite] Possible bug in sqlite3_prepare

2006-05-29 Thread Michael B. Hansen
Hi! Regarding my weird bug in regards to sqlite3_prepare. I have changed from Finisar.SQLite to Mono.Data.SqliteClient - and this seems to be working better. I cannot reproduce the error with Mono.Data.SqliteClient - so I suspect somekind of memory allocation error in either Finisar.SQLite or

[sqlite] LIMIT and paging records

2006-05-29 Thread Mikey C
Hi, I think this has been discussed before, but I can't find a good solution so I'll post it again to see what people think. Here's the problem. I have a large number of records in a table, which contains many columns. Hence a large amount of data. I have a SQL query that filters the results

Re: [sqlite] where I can download sqlite 3.2.8

2006-05-29 Thread yuyen
Hi, rayB Thank you very much for the information about download previous version. I have tried that and I've got the zip file which contains only sqlite3.exe. How about the sqlite3.dll, what kind of file name we can download the dll file. Jack - Original Message - From: <[EMAIL