Hello!
See tests and some interpretation:
http://geomapx.blogspot.com/2009/11/degradation-of-indexing-speed.html
Best regards, Alexey Pechnikov.
http://pechnikov.tel/
___
sqlite-users mailing list
sqlite-users@sqlite.org
Hello!
On Sunday 14 February 2010 05:44:34 Matthew Smith wrote:
> It seems from the Tcl wiki that SQLite is not VFS-aware (Tcl Virtual File
> System).
Yes, it's rigth.
> This means that when you create an application, you must delivery a packaged
> EXE of the Tcl application, but the database
Erik de Castro Lopo wrote:
> Hi all,
>
> I've got some relatively simple code that does a query and then
> does the following:
>
> const char *stmt = "DELETE FROM connect WHERE machine = 'xxx';" ;
>
> printf ("Before : %s\n", sqlite3_errmsg (pdb)) ;
> sqlite3_exec (pdb, stmt, NULL,
On Mon, Feb 15, 2010 at 09:11:31PM +, Simon Slavin scratched on the wall:
>
> On 15 Feb 2010, at 8:35pm, Jay A. Kreibich wrote:
> > On Mon, Feb 15, 2010 at 07:31:43PM +, Simon Slavin scratched on the
> > wall:
> >> So the command-line tool cannot correctly read the CSV files
> >> it
On Mon, Feb 15, 2010 at 4:31 PM, Simon Slavin wrote:
>
> On 15 Feb 2010, at 9:28pm, Roger Binns wrote:
>
> > Simon Slavin wrote:
> >> It uses one when it outputs, but it won't accept the same format when it
> inputs. So the program is itself inconsistent: however you
Roger Binns wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Erik de Castro Lopo wrote:
> > printf ("Before : %s\n", sqlite3_errmsg (pdb)) ;
> > sqlite3_exec (pdb, stmt, NULL, NULL, NULL) ;
> > printf ("After : %s\n", sqlite3_errmsg (pdb)) ;
> >
> > The query that
On 15 Feb 2010, at 9:28pm, Roger Binns wrote:
> Simon Slavin wrote:
>> It uses one when it outputs, but it won't accept the same format when it
>> inputs. So the program is itself inconsistent: however you define 'csv
>> format', either its output or input function is broken.
>
> There is a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Erik de Castro Lopo wrote:
> printf ("Before : %s\n", sqlite3_errmsg (pdb)) ;
> sqlite3_exec (pdb, stmt, NULL, NULL, NULL) ;
> printf ("After : %s\n", sqlite3_errmsg (pdb)) ;
>
> The query that happens before this works as expected and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Simon Slavin wrote:
> It uses one when it outputs, but it won't accept the same format when it
> inputs. So the program is itself inconsistent: however you define 'csv
> format', either its output or input function is broken.
There is a ticket
Hi all,
I've got some relatively simple code that does a query and then
does the following:
const char *stmt = "DELETE FROM connect WHERE machine = 'xxx';" ;
printf ("Before : %s\n", sqlite3_errmsg (pdb)) ;
sqlite3_exec (pdb, stmt, NULL, NULL, NULL) ;
printf ("After : %s\n",
On 15 Feb 2010, at 8:35pm, Jay A. Kreibich wrote:
> On Mon, Feb 15, 2010 at 07:31:43PM +, Simon Slavin scratched on the wall:
>>
>> So the command-line tool cannot correctly read the CSV files
>> it output itself ? Okay, that's messed up. Something should be done.
>
> Yes, and always
Jay A. Kreibich a écrit :
You said you're creating two databases. Are you doing those one at a
time or ATTACHing the other databases?
Doing them one at a time, indeed.
___
sqlite-users mailing list
sqlite-users@sqlite.org
On Mon, Feb 15, 2010 at 08:09:26PM +0100, Jérôme Magnin scratched on the wall:
> > The database is 2GB
> > but the least amount of memory I have is 4GB. I also use a 32kb page
> > size,
> > larger cache etc.
> I have of course tried to increase cache size and database page size (up
> to 32K)
> So the command-line tool cannot correctly read the CSV files it output
> itself ? Okay, that's messed up. Something should be done.
On the other hand, should it read HTML output back in again? At
present, the .import only supports separators, no other processing is
done. It wouldn't be too
On Mon, Feb 15, 2010 at 07:31:43PM +, Simon Slavin scratched on the wall:
>
> So the command-line tool cannot correctly read the CSV files
> it output itself ? Okay, that's messed up. Something should be done.
Yes, and always will be. Different version of Excel have similar
issues.
Simon Slavin:
> Nice try. The rounding rule is that a .5 rounds to the nearest even number.
No it isn't:
sqlite> select round(40226+0.5);
40227.0
sqlite> select round(40227+0.5);
40228.0
sqlite> select round(40228+0.5);
40229.0
sqlite> select round(40229+0.5);
40230.0
Phil Hibbs.
--
Don't
On Feb 15, 2010, at 1:43 PM, Roger Binns wrote:
> Shane Harrelson wrote:
>> I'm looking at how this can be improved.
>
> It seems that everyone else is converging on using David Gay's dtoa.c
We've been "converging" for a few years!
On 15 Feb 2010, at 7:23pm, Phil Hibbs wrote:
> Simon Slavin:
>> The command-line tool is correct as far as it goes in producing CSV
>> files: if you use quotes around text fields, it is correct to double quotes
>> inside those fields. Take a look at the CSVs you're trying to import.
>> Are the
Simon Slavin:
> The command-line tool is correct as far as it goes in producing CSV
> files: if you use quotes around text fields, it is correct to double quotes
> inside those fields. Take a look at the CSVs you're trying to import.
> Are the text fields delimited by quotes ? If quotes appear
Sorry folks, it took me time (and a brand new brain) to figure out how I
could post a reply that would appear on the mailing list (I'm new to
that kind of sport).
To Roger Binns:
> As another data point, my data set is 10M records and the 6 indices I
> need
> are created in under two minutes.
On 15 Feb 2010, at 4:33pm, Phil Hibbs wrote:
> Paul Corke:
>> Do you need to read the csv data back in to a sqlite database? If
>> not, then the file you've got should be ok.
>
> Well, what I need to do is import csv files from other sources, this
> was just a test to see if there were any
On 15 Feb 2010, at 6:40pm, Simon Slavin wrote:
> .5 rounds to the nearest even number
Whoops. My email software put this post in a different place to its followups.
Apologies.
Simon.
___
sqlite-users mailing list
sqlite-users@sqlite.org
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Shane Harrelson wrote:
> I'm looking at how this can be improved.
It seems that everyone else is converging on using David Gay's dtoa.c whose
algorithm is based on the paper "How to Print Floating-Point Numbers
Accurately" by Guy L. Steele, Jr. and
On 15 Feb 2010, at 8:51am, zabusovm...@mail.ru wrote:
> sqlite> select round(40223+0.5);
> 40224.0
> sqlite> select round(40224+0.5);
> 40224.0
> sqlite> select round(40225+0.5);
> 40226.0
Nice try. The rounding rule is that a .5 rounds to the nearest even number.
This is so that rounding
On Mon, Feb 15, 2010 at 12:52 PM, Phil Hibbs wrote:
> Shane Harelson:
> > Under the covers, when the second term to ROUND(X,y) is omitted, SQLite
> adds
> > 0.5 and then truncates.Because of floating point precision, some
> numbers
> > can not be represented exactly...
On Mon, Feb 15, 2010 at 12:52 PM, Phil Hibbs wrote:
> Shane Harelson:
> > Under the covers, when the second term to ROUND(X,y) is omitted, SQLite
> adds
> > 0.5 and then truncates.Because of floating point precision, some
> numbers
> > can not be represented exactly...
As usual, I forgot the promised attachments. Here they are.
Jean-Paul
addr opcode p1
p2 p3
-- -- -- -
0 Noop0
0
1 Integer 2
0
2 MustBeInt
Hi all,
I'm investigating some apparent slowdowns of an app when upgrading to
more recent versions of SQLite3. This has been a problem for quite a
while, so I had to go back pretty far to find a version of SQLite3 where
things were performing as desired. For the moment, I've just compared
Shane Harelson:
> Under the covers, when the second term to ROUND(X,y) is omitted, SQLite adds
> 0.5 and then truncates.Because of floating point precision, some numbers
> can not be represented exactly... causing the odd rounding you saw in your
> examples.
I've just had a look "under the
Shane Harrelson wrote:
> http://www.sqlite.org/lang_corefunc.html#round
>
> Under the covers, when the second term to ROUND(X,y) is omitted, SQLite adds
> 0.5 and then truncates.Because of floating point precision, some numbers
> can not be represented exactly... causing the odd rounding you
http://www.sqlite.org/lang_corefunc.html#round
Under the covers, when the second term to ROUND(X,y) is omitted, SQLite adds
0.5 and then truncates.Because of floating point precision, some numbers
can not be represented exactly... causing the odd rounding you saw in your
examples.
I'll see
Igor:
> http://en.wikipedia.org/wiki/Rounding#Round_half_to_even
So, are you saying round-half-to-even is the SQLite behaviour? I would
have expected it to have used the "normal" mathematical convention of
round-half-away-from-zero. The reason this is "normal" mathematical
behaviour is that any
On Feb 15, 2010, at 11:36 AM, Hick Gunter wrote:
> In SQLite 3.5.9 it used to be possible to write
>
> sqlite> ATTACH '/some/unix/file/name.db' AS mydb;
>
>
> In SQLite 3.6.22 this results in the error message
>
> Error: unable to resolve operation
Works fine when I try it. Are you using the
zabusovm...@mail.ru wrote:
> SQLite version 3.6.22
> Enter ".help" for instructions
> Enter SQL statements terminated with a ";"
> sqlite> select round(40223+0.5);
> 40224.0
> sqlite> select round(40224+0.5);
> 40224.0
> sqlite> select round(40225+0.5);
> 40226.0
> sqlite>
> If you give SQLite a command to open a database file that
> doesn't exist, it will just create a new one. It doesn't give an
> error message. So use a search function on your disk for
> files with that name.
Try this in your program: "select * from sqlite_master;"
That will tell you if you
In SQLite 3.5.9 it used to be possible to write
sqlite> ATTACH '/some/unix/file/name.db' AS mydb;
In SQLite 3.6.22 this results in the error message
Error: unable to resolve operation
whereas
sqlite> ATTACH /some/unix/file/name.db AS mydb;
is a syntax error at '/'
The problem seems to be
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select round(40223+0.5);
40224.0
sqlite> select round(40224+0.5);
40224.0
sqlite> select round(40225+0.5);
40226.0
sqlite>
___
sqlite-users mailing
Paul Corke:
> Not doing the ".mode csv" before the ".import" makes things better
> but doesn't fix it.
That breaks when I have more than one column though, "line 1: expected
3 columns of data but found 1".
> Do you need to read the csv data back in to a sqlite database? If
> not, then the file
On 15 Feb 2010, at 2:50pm, Phil Hibbs wrote:
> If I write out data in csv format using SQLite3 shell, it doubles up
> all the quote characters. Any ideas how can I stop it doing this?
>
> C:\sqlite>sqlite3 test.db
> SQLite version 3.6.22
> Enter ".help" for instructions
> Enter SQL statements
On Mon, Feb 15, 2010 at 03:59:32PM +0100, "Tino Flei?ner" scratched on the wall:
> Hello everyone,
>
> i'd like to know if its possible to change the path of the journal
> file which is automaticly generated when i'm starting a transaction.
> I'm currently trying to import data from a database on
Hello everyone,
i'd like to know if its possible to change the path of the journal file which
is automaticly generated when i'm starting a transaction. I'm currently trying
to import data from a database on a DVD to a local database and i'm getting an
error because i can't write on the dvd.
If I write out data in csv format using SQLite3 shell, it doubles up
all the quote characters. Any ideas how can I stop it doing this?
C:\sqlite>sqlite3 test.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table test ( f1
Closing the thread:
>Then why sqlite3_step() fails for the reader and for the
writer?
The reader fails since
it cannot obtain SHARED lock required for reading.
It cannot obtain that
lock since the writer already managed to obtain PENDING or EXCLUSIVE lock.
The writer fails since
there is
> His original question was about the todo list found at the wiki.
> Not sure if any of the core developer will answer, but I would
> be interested as well...
I too have been long interested in when this might be addressed, since we see
similar performance drop-offs with large numbers of rows.
Hi,
I've noticed in alter.c, around about line 480 there is a direct reference
to updating the sqlite_master table, rather than using the SCHEMA_TABLE
macro.
I wondered whether this was a simple oversight, or by design?
It means the following currently happens...
sqlite> pragma
45 matches
Mail list logo