[sqlite] Size of IO operations

2013-08-09 Thread Andrew Beal
Hi All, Is there a way within SQLite to configure how many bytes each interaction with the IO layer occur as? According to the http://www.sqlite.org/atomiccommit.html doc, SQLITE does sector writes and that is configured by the xSectorSize function within the IO Methods object. From the

Re: [sqlite] Size of IO operations

2013-08-09 Thread Richard Hipp
On Fri, Aug 9, 2013 at 1:55 PM, Andrew Beal ab...@whoi.edu wrote: Hi All, Is there a way within SQLite to configure how many bytes each interaction with the IO layer occur as? According to the http://www.sqlite.org/atomiccommit.html doc, SQLITE does sector writes and that is configured by

Re: [sqlite] Size

2012-10-05 Thread Alami Omar
Thank you for your answer Mr.Simon Davies, but it seems that in a sqlite format 3 file (that i have), the offset 28 value is not valid(not equal to the file size) and surely not equal to offset 92 (00 00 00 00), what i am trying to do, is extract an SQLite Format 3 file from the hex code of

Re: [sqlite] Size

2012-10-04 Thread Simon Davies
On 4 October 2012 14:06, Alami Omar omarr...@gmail.com wrote: Hello, does SQLite format files have any size(fie size of the sqlite file) info on the header ? Thank you. http://www.sqlite.org/fileformat.html#filesize Regards, Simon ___ sqlite-users

Re: [sqlite] Size

2012-10-04 Thread Simon Slavin
On 4 Oct 2012, at 2:06pm, Alami Omar omarr...@gmail.com wrote: Hello, does SQLite format files have any size(fie size of the sqlite file) info on the header ? Thank you. You can find file content information here: http://www.sqlite.org/fileformat.html There's no specific location with the

Re: [sqlite] Size

2012-10-04 Thread Alami Omar
Thank you for your answers Mr.Simon Davies and Mr.Simon Slavin, but it seems that in a sqlite format 3 file (that i have), the offset 28 value is not valid(not equal to the file size) and surely not equal to offset 92 (00 00 00 00), what i am trying to do, is extract an SQLite Format 3 file from

Re: [sqlite] Size

2012-10-04 Thread Clemens Ladisch
Alami Omar wrote: it seems that in a sqlite format 3 file (that i have), the offset 28 value is not valid(not equal to the file size) Please read the link you were given. This size is in pages. what i am trying to do, is extract an SQLite Format 3 file from the hex code of another file

[sqlite] Size of WAL file and cache

2012-09-26 Thread Sebastian Krysmanski
Hi, I was wondering what the size (in MB) of a WAL file and of a shared/private cache is in SQLite. I'm running SQLite on an Android smartphone so space (RAM/HDD) is scarce. 1. I understand that the WAL file is stored on the disk. Provided auto-checkpointing, how big would the WAL file grow? It

Re: [sqlite] Size of WAL file and cache

2012-09-26 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/09/12 01:15, Sebastian Krysmanski wrote: 1. I understand that the WAL file is stored on the disk. During a transaction the old pages and the new pages will both be present at some point no matter what mode is used. Consequently you should

[sqlite] Size query

2010-11-03 Thread Scott A Mintz
Is it possible to construct a query that will tell me the total size in bytes of the result set? Specifically, in a messaging protocol that returns data we need to fragment the reply and it would be nice to know how much data or how many packets will be required to send the response. Thanks,

Re: [sqlite] Size query

2010-11-03 Thread Stephen Chrzanowski
Couldn't you do something like: select length(FieldName) from TableName where Condition=True ? The result would be the size. Otherwise, the only thing I can think of is just doing a select to get the results you want, then just keep a running tally on what would need to be transmitted, then do

Re: [sqlite] Size query

2010-11-03 Thread Scott A Mintz
If x is numeric length(x) returns the length of x expressed as a string. So the value of length(1 ) is 5, not 2. -Scott sqlite-users-boun...@sqlite.org wrote on 11/03/2010 06:35:52 PM: Couldn't you do something like: select length(FieldName) from TableName where Condition=True ?

Re: [sqlite] Size query

2010-11-03 Thread Samuel Adam
On Wed, 03 Nov 2010 18:35:52 -0400, Stephen Chrzanowski pontia...@gmail.com wrote: Couldn't you do something like: select length(FieldName) from TableName where Condition=True ? The result would be the size. Otherwise, the only thing I can think of Caution: This will return the size

Re: [sqlite] Size query

2010-11-03 Thread Samuel Adam
On Wed, 03 Nov 2010 18:24:57 -0400, Scott A Mintz sami...@ra.rockwell.com wrote: Is it possible to construct a query that will tell me the total size in bytes of the result set? Specifically, in a messaging protocol that returns data we need to fragment the reply and it would be nice to

Re: [sqlite] Size query

2010-11-03 Thread Samuel Adam
On Wed, 03 Nov 2010 19:17:48 -0400, Samuel Adam a...@certifound.com wrote: SQLite uses its own variable-length integer representation internally, occupying between 1 and 64 bits per value; if this is for a Sorry to reply to my own post; I wish to be precise. By “internally”, I meant (and

Re: [sqlite] Size query

2010-11-03 Thread Stephen Chrzanowski
But wouldn't you be aware of what the data is you want to transmit anyways? Sure, it thinks as 1 as a length of 5, but, you'll know that you'll need to send 4 or 8 bytes. On Wed, Nov 3, 2010 at 6:50 PM, Scott A Mintz sami...@ra.rockwell.comwrote: If x is numeric length(x) returns the length

[sqlite] size control of sqlite database

2010-01-14 Thread gujx
Hi, I’d like to ask some question about the interface of the sqlite resource. Whether there is some interface to control the size of a database, for example, if I want to create a database with 5M initialized, how can I do that? And when I make change to a database, for example, insert a row to a

Re: [sqlite] size control of sqlite database

2010-01-14 Thread Martin.Engelschalk
Hi, a sqlite database is a file, you can get its size using OS calls. It is not possible to create a database with an initial size, because the file grows dynamically when you insert data. To avoid fragmentation, I also looked for a way to allocate empty space inside the database file when

Re: [sqlite] size control of sqlite database

2010-01-14 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin.Engelschalk wrote: However, i could not find a way to determine when the empty pages are used up and the file will start to grow again without checking the file size after every insert. Doesn't PRAGMA freelist_count help with that? There

Re: [sqlite] size control of sqlite database

2010-01-14 Thread Martin Engelschalk
Hi Roger, yes, thank you, i did not see this. Martin Roger Binns wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin.Engelschalk wrote: However, i could not find a way to determine when the empty pages are used up and the file will start to grow again without checking the file

[sqlite] Size of a memory DB?

2008-10-31 Thread Christophe Leske
Hi, is there a way to get the size of a :memory: db in the sqlite3.exe command line interpreter? Or any other way? -- Christophe Leske www.multimedial.de - [EMAIL PROTECTED] http://www.linkedin.com/in/multimedial Lessingstr. 5 - 40227 Duesseldorf - Germany 0211 261 32 12 - 0177 249 70 31

Re: [sqlite] Size of a memory DB?

2008-10-31 Thread Christophe Leske
is there a way to get the size of a :memory: db in the sqlite3.exe command line interpreter? Or any other way? Also, would using a small PRAGMA page_size value decrease the amount of memory used? I think the default size is 4096 bytes, how about 512 bytes for an in-memory database with

Re: [sqlite] Size of Meta data ?

2008-01-04 Thread Kees Nuyt
Hi Yuva, On Fri, 4 Jan 2008 15:32:44 +0530, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello, Is there any way to estimate the size of the metadata of a SQLite database? I am trying to do the following: 1) Set the DB size using MAX_PAGE_COUNT and PAGE_SIZE parameters 2) I want to do a

[sqlite] Size of Meta data ?

2008-01-04 Thread Yuvaraj Athur Raghuvir
Hello, Is there any way to estimate the size of the metadata of a SQLite database? I am trying to do the following: 1) Set the DB size using MAX_PAGE_COUNT and PAGE_SIZE parameters 2) I want to do a bulk insert. 3) However, I want to insert only those many records such that the insert succeeds.

[sqlite] Size of INDEX in database

2006-11-30 Thread Dr Gerard Hammond
Hi, Is there a SELECT call I can issue to the SQLite engine to determine the number of bytes that INDEXs occupy. -- Cheers, Dr Gerard Hammond PowerPC Mac the world's most advanced obsolete computer. - To

Re: [sqlite] Size of INDEX in database

2006-11-30 Thread drh
Dr Gerard Hammond [EMAIL PROTECTED] wrote: Hi, Is there a SELECT call I can issue to the SQLite engine to determine the number of bytes that INDEXs occupy. No. But you can download the sqlite3_analyzer utility from http://www.sqlite.org/download.html and use it to get detailed measurements

Re: [sqlite] MAX SQLite Size?/ Corrupt Database

2006-11-06 Thread Martin Jenkins
viking2 wrote: I have a large (1.46 GB!) SQLite database (v2) with two tables: [...] 1. I dumped the database into a text file, Data_full.sql= 949 MB 2. I also deleted the first table and dumped the data into another text file (Data_TB_SR.sql) which is only 532 MB. First thing I'd do is

[sqlite] MAX SQLite Size?/ Corrupt Database

2006-11-05 Thread viking2
://www.nabble.com/MAX-SQLite-Size---Corrupt-Database-tf2579250.html#a7190256 Sent from the SQLite mailing list archive at Nabble.com. - To unsubscribe, send email to [EMAIL PROTECTED] -

[sqlite] size of sqlite

2006-02-17 Thread Jiao
all, I've build sqlite in x86, its size stripped is 318244bytes, Can it cut even smaller, I noticed some documents said it can be more smaller, how to cut down? Best Regard Thank in advance Jiao

Re: [sqlite] size of sqlite

2006-02-17 Thread Gerhard Häring
Jiao wrote: I've build sqlite in x86, its size stripped is 318244bytes, Can it cut even smaller, I noticed some documents said it can be more smaller, how to cut down? See http://www.sqlite.org/compile.html -- Gerhard

[sqlite] Size of INSERT and UPDATE in TRANSACTION

2005-10-27 Thread Hannes Ricklefs
Hello, I was wondering if anyone has any experience with the number of INSERT UPDATE statements in one TRANSACTION. For example I have the situation that i have to do around 20.000 INSERTS in one TRANSACTION, so I am wondering if it has any performance improvements if I split these up into

Re: [sqlite] Size of INSERT and UPDATE in TRANSACTION

2005-10-27 Thread Martin Engelschalk
Hello Hannes, I think no, you need not split your transaction. I do millions on insert in one transaction and it works real fast Martin Hannes Ricklefs schrieb: Hello, I was wondering if anyone has any experience with the number of INSERT UPDATE statements in one TRANSACTION. For example

Re: [sqlite] Size of INSERT and UPDATE in TRANSACTION

2005-10-27 Thread R S
It would be the other way around, no? The larger the no of inserts within a Transaction, the better the performance. On 10/27/05, Hannes Ricklefs [EMAIL PROTECTED] wrote: Hello, I was wondering if anyone has any experience with the number of INSERT UPDATE statements in one TRANSACTION. For

[sqlite] size of the cache

2004-09-16 Thread Jérôme VERITE
Hi, I want to optimize requests on a big database which works with sqlite 2.8.14. The first time I make a sql request, is spends 4 minutes before returning a result, but the second time, it take only 2 seconds. I think it’s the use of the cache which permits such performances. S How can I

Re: [sqlite] Size of fields

2004-01-18 Thread Kurt Welgehausen
SQLite mostly ignores type info. See http://www.sqlite.org/faq.html#q10 and #q11. Also http://www.sqlite.org/datatypes.html. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]