[sqlite] SQLite 3.4.2 - extract lost data with autoindex crashed

2011-07-21 Thread A . Azzolini
Hallo, I lost many data in a database where autoindex crashed and any new record, from this event, has been saved on rowid=1. Any SELECT about lost data return many rows but identical data. (only COUNT(rowid) is correct - data is not real) Is there any tool/way to extract data that appear to b

[sqlite] FTS: prefix wildcards?

2011-07-21 Thread Sebastian Vogelsang
Hey guys, as far as I understand the documentation FTS3/4 does not support prefix wildcards when searching (e.g. "*board" => skateboard, longboard, snowboard). Is there any way to get this working by now? I read that the right tokenizer may help. Are there any open source ones out there? Rega

[sqlite] Can Anyone help me to make this Query Faster..!!!

2011-07-21 Thread Alok Singh
Hi Sqlite Team, I am trying to Insert values into New Table "Ticket" from Table1,Table2,Table3 and Table4 with the following Query but its taking alot of time to insert values in new table. VB.NET + SQLITE using ADO.net connection ( Its having 25k+ rows) *Option 1:*

Re: [sqlite] Can Anyone help me to make this Query Faster..!!!

2011-07-21 Thread Simon Slavin
On 21 Jul 2011, at 2:28pm, Alok Singh wrote: > I am trying to Insert values into New Table "Ticket" from > Table1,Table2,Table3 and Table4 with the following Query but its taking alot > of time to insert values in new table. > VB.NET + SQLITE using ADO.net connection ( Before your for INSERT com

Re: [sqlite] Can Anyone help me to make this Query Faster..!!!

2011-07-21 Thread Alok Singh
*You mean this as follows as i written, please review it, its all still slow..* ** *Option 2:* cons.Open() dim z as integer Dim mycommand As SQLiteCommand = New SQLiteCommand(cons) Dim myparam As SQLiteParameter = New SQLiteParameter

Re: [sqlite] Can Anyone help me to make this Query Faster..!!!

2011-07-21 Thread Simon Slavin
On 21 Jul 2011, at 3:29pm, Alok Singh wrote: > Dim tx = cons.BeginTransaction() Sorry but you're using a library I'm not familiar with. Judging from what you wrote the first time I'd think more like mycommand.CommandText = "BEING TRANSACTION" mycommand.ExecuteNonQuery() FOR z = 1 TO coun

[sqlite] Select names where occurences are greater than 10

2011-07-21 Thread chiefmccrossan
I have a Tracks table containing columns for artistname and trackname. I want to be able to select all artist names that have more than ten tracks. For example Elvis Presley has more than 20 tracks in the Tracks table but Johnny Cash has only 5 tracks. I need to be able to count Elvis and discount

Re: [sqlite] Select names where occurences are greater than 10

2011-07-21 Thread Luuk
On 21-07-2011 18:59, chiefmccrossan wrote: > > I have a Tracks table containing columns for artistname and trackname. I want > to be able to select all artist names that have more than ten tracks. For SELECT artisname, count(tracks) FROM Tracks GROUP BY artistname HAVING count(tracks)>10 > exa

Re: [sqlite] Performance Improvement

2011-07-21 Thread Paul Linehan
> I can at least store all the data, for the cases I have tested till > now (600 billion entries for now), but it is awfully slow. I'm not surprised. Maybe you should consider some sort of partitioning scheme? Take a look at VoltDB.com - it might be an approach? Paul... -- Hmmm a "life": w

[sqlite] Cannot add interop assembly

2011-07-21 Thread Brad Laney
Hey, So I am running .Net 4.0 so I downloaded the binarys for 64 bit .Net 4.0, the non-mixed mode ones. If I try adding a reference to the interop visual studio says it can't add it as a reference. Anyone know of a way I can fix this? Thanks, Brad __

Re: [sqlite] Performance Improvement

2011-07-21 Thread Black, Michael (IS)
Could you define "awfully slow"? That's pretty hard to tell if your speed is what one should expect. Michael D. Black Senior Scientist NG Information Systems Advanced Analytics Directorate From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Paul Linehan [lin

Re: [sqlite] Select names where occurences are greater than 10

2011-07-21 Thread chiefmccrossan
Perfect! Thanks a million! =) Just wondering, is there anyway to select only unique results in what is returned and no duplicates? For example, Elvis Presley has a track called Teddy Bear in my table 6 times but I only want to include it once? luuk34 wrote: > > On 21-07-2011 18:59, chiefmccro

Re: [sqlite] Select names where occurences are greater than 10

2011-07-21 Thread Igor Tandetnik
On 7/21/2011 3:15 PM, chiefmccrossan wrote: > Perfect! Thanks a million! =) > > Just wondering, is there anyway to select only unique results in what is > returned and no duplicates? > > For example, Elvis Presley has a track called Teddy Bear in my table 6 times > but I only want to include it onc

Re: [sqlite] Select names where occurences are greater than 10

2011-07-21 Thread Black, Michael (IS)
select id,count(distinct track) from tracks group by id having count(distinct track)>=10; Michael D. Black Senior Scientist NG Information Systems Advanced Analytics Directorate From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on be

Re: [sqlite] Script-friendly execution of sqlite3.exe for initializing a DB

2011-07-21 Thread Marvin Bellamy
Thanks, for the record this works but for some reason the ToolTask only sends the arguments list to the command-processor if this flag is set. So, you need to prepend the tool path and tool name to get it working. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-use

Re: [sqlite] Cannot add interop assembly

2011-07-21 Thread Joe Mistachkin
You should not need to add the interop assembly (i.e. SQLite.Interop.dll) as an actual "reference"; however, you may want to add it as a "content" file to your project and set it to be copied to the project output directory. You will want to add a reference to the [managed] "System.Data.SQLite" as

Re: [sqlite] Cannot add interop assembly

2011-07-21 Thread Brad Laney
Hello, Yeah that is what I did in the interim to get it to work. The issue being my company does not believe in the DLLs being in a lib folder inside a project. Instead they have a Library folder at the same level of the solution file, and everything is added by ref. So unless I add it by ref I

Re: [sqlite] Cannot add interop assembly

2011-07-21 Thread Joe Mistachkin
> > Yeah that is what I did in the interim to get it to work. > Ok, good. > > The issue being my company does not believe in the DLLs being in a lib folder inside a project. > Their beliefs do not impact how the code needs to be deployed in order to function properly. > > Instead they have a L

Re: [sqlite] Handle leak using IIS on windows 7?

2011-07-21 Thread Doug
This was exactly the problem; I didn't realize the 'static' variables are persisted between page views in ASP.Net Adding an '_instance = null;' fixed the issue. Thanks muchly. Cheers, Doug. On Tue, Jul 19, 2011 at 11:58 AM, Joe Mistachkin wrote: > > After reading the code, I noticed the follow