Re: [sqlite] Limiting the amount of memory usage for Sqlite

2009-02-16 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gokila Dorai wrote: > I will be great if someone can help me on how to limit the amount of memory > usage to a fixed size for Sqlite version 3.3.6. Look closer at the source code. You can provide your own memory functions and tuning. They have

[sqlite] Database path in widows

2009-02-16 Thread Jibin Scaria
Hi, I am new to SQLite. I am trying to develop a small application in C# using sqlite-dotnet2 I am facing problem with spaces in the database path, able to open database but queries are returning "no such table: table name". Can somebody help me?

[sqlite] Limiting the amount of memory usage for Sqlite

2009-02-16 Thread Gokila Dorai
I will be great if someone can help me on how to limit the amount of memory usage to a fixed size for Sqlite version 3.3.6. At present the amount of memory usage increases when the number of objects inserted into the database is increased. I want to set a maximum allowable limit for the

Re: [sqlite] 100 million records will be fine?

2009-02-16 Thread Rajesh Nair
I have a real time program which logs more than 30,000 records, each record of about 200 bytes, per day and the company in which it has been installed is working 24/365. I installed the project on 2005 August and it is working fine till date. It perform some report generations (4 or 5) every day.

Re: [sqlite] SQLite- Memory heap usage query

2009-02-16 Thread P Kishor
Didn't you ask this question 4 days ago, and it was answered? The only difference in your question this time around seems to be that you are asking for a way to reduce the db file size. You could utilize a compression library on your data... check the mail archives and also google for that

Re: [sqlite] SQLite- Memory heap usage query

2009-02-16 Thread jaya_kumar
Hi All, In the following use case, when I try to update the following number of objects SQLite DB file size is very large 1. 1k object - DB file size was 264 Kb 2. 41k object - DB file size was 11 Mb 3. 100k object - DB file size was 26 Mb Is there any way to reduce the DB file size? Thanks

[sqlite] Double entry bookkeeping

2009-02-16 Thread BareFeet
Hi all, I'm trying to design a schema for double entry book-keeping. Is there already a schema available that provides this functionality? As I see it, I need to start with something like the schema below. Any other approaches? create table Accounts ( Code text unique collate

Re: [sqlite] 100 million records will be fine?

2009-02-16 Thread Alexey Pechnikov
Hello! В сообщении от Monday 16 February 2009 22:14:03 Jay A. Kreibich написал(а): > > Of cource, write operations must be grouped becouse memory allocation > > for write transaction is proportional to database size (see offsite). > >   This limitation was removed about a year ago around 3.5.7.  

Re: [sqlite] 100 million records will be fine?

2009-02-16 Thread Jay A. Kreibich
On Mon, Feb 16, 2009 at 07:55:33PM +0300, Alexey Pechnikov scratched on the wall: > Of cource, write operations must be grouped becouse memory allocation > for write transaction is proportional to database size (see offsite). This limitation was removed about a year ago around 3.5.7. Rather

Re: [sqlite] Visual Studio 2005 Linker Problems - SQLite v3.6.3

2009-02-16 Thread Ian Thomas
Hi Shane, Thanks very much for the suggestion. I excluded the 'rtree.c' source file from my build configuration and it now links fine (release and debug). I guess there's still an underlying issue but as I don't need the rtree module it doesn't affect me! Thanks again, Ian Shane Harrelson

Re: [sqlite] Visual Studio 2005 Linker Problems - SQLite v3.6.3

2009-02-16 Thread Shane Harrelson
rtree support is an extension to SQLite and is not needed to use the core functionality. Try leaving the rtree source files out of your builds to see if this corrects your problem. You might also consider using the SQLITE_OMIT_LOAD_EXTENSION option as well. http://www.sqlite.org/compile.html

Re: [sqlite] 100 million records will be fine?

2009-02-16 Thread Alexey Pechnikov
Hello! В сообщении от Monday 16 February 2009 17:42:25 danjenkins написал(а): > I fully understand that performance will depend on the coding, database > structure and indexing (& hardware) but, assuming these are taken care of, > should a 100 million record table perform loosely in the same

[sqlite] "analyze" command slow for large amounts of data; alternative possible?

2009-02-16 Thread John Wood
The problem --- I'm using the "ANALYZE" command of SQLITE to try and improve performance for queries. However, I'm finding that the actual analyze call can take a long time to run for large amounts of rows (e.g. >2). This is especially the case if a lot of data has been changed

Re: [sqlite] Full Table Read

2009-02-16 Thread Nathan Biggs
> > > Griggs, Donald wrote: > >> > On linux you can do >> >> >>> dd if=database.db of=/dev/null bs=1M >>> and after perform "select ..." >>> >>> >> = >> From: sqlite-users-boun...@sqlite.org >> [mailto:sqlite-users-boun...@sqlite.org] On

[sqlite] 100 million records will be fine?

2009-02-16 Thread danjenkins
Hi. I've started a SQLite C++ project that could peak at 100 million records (250 bytes per record spread over 20 fields) and would like to ask if anyone has seen SQLite projects of this magnitude. The Windows data logging project will add up to 1 million records per day and run queries

Re: [sqlite] Full Table Read

2009-02-16 Thread Griggs, Donald
Griggs, Donald wrote: > > On linux you can do > >> dd if=database.db of=/dev/null bs=1M >> and after perform "select ..." >> > > = > From: sqlite-users-boun...@sqlite.org > [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Nathan Biggs > Subject: Re:

Re: [sqlite] Full Table Read

2009-02-16 Thread Alexey Pechnikov
Hello! В сообщении от Monday 16 February 2009 17:18:04 Nathan Biggs написал(а): > Is that just creating an in-memory database then?  I'm not familiar with > a copy to a null location. Writes to in-memory database is not saved to disk. If you only want to increase read speed when ram-cache of

[sqlite] Visual Studio 2005 Linker Problems - SQLite v3.6.3

2009-02-16 Thread Ian Thomas
Hello, I'm trying to compile my own debug build of SQLite v3.6.3 in Visual Studio 2005 so that I can step through a problem I'm having with my application. I have followed the instructions found here: http://www.sqlite.org/cvstrac/wiki?p=HowToCompileWithVsNet Using the standard v3.6.3 source

Re: [sqlite] Full Table Read

2009-02-16 Thread Nathan Biggs
Is that just creating an in-memory database then? I'm not familiar with a copy to a null location. Griggs, Donald wrote: > > On linux you can do > >> dd if=database.db of=/dev/null bs=1M >> and after perform "select ..." >> > > = > From:

Re: [sqlite] Full Table Read

2009-02-16 Thread Griggs, Donald
> On linux you can do > dd if=database.db of=/dev/null bs=1M > and after perform "select ..." = From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Nathan Biggs Subject: Re: [sqlite] Full Table Read We are actually using

Re: [sqlite] Full Table Read

2009-02-16 Thread Nathan Biggs
We are actually using Windows XP for an OS. (I know, lots of limitations, but that is what we have to use). Alexey Pechnikov wrote: > Hello! > > В сообщении от Saturday 14 February 2009 00:33:38 Nathan Biggs написал(а): > >> Is there a faster way to read an entire table other then: >> >>

Re: [sqlite] having the Top N for each group

2009-02-16 Thread Sylvain Pointeau
Hello, I lost my query that I used before :-( (I put the file in GIT after my second query) I will however have another try and I will post it to you. I was also wondering if my indices were correctly defined. Many thanks for your answers, I appreciate a lot your help. Cheers, Sylvain On