a.furieri
unread,Dec 15, 2009, 1:59:15 PM12/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SpatiaLite Users
Hi Alexey,
thanks a lot for noticing this.
I really love you brilliant idea: querying
by SQL the Apache logfile is very nice
[and useful] :-)
during my post-mortem analysis I realized that
VirtualText has lots and lots of really *awful*
traps in its current implementation:
a) the text file is firstly read and entirely
CACHED IN RAM :-(
this is good for small-sized files, but is
completely unsustainable for huge-sized files
[as the one you are using in your test]
b) this way we have lots of small (heavily fragmented)
dynamic memory allocations: again, the performance
impact is good for small files, but is absolutely
negative for huge files.
c) worst of all, insufficient memory conditions
where completely mishandled.
so standing things, the current VirtualText
implementation is perfectly able to access
any text file not exceeding some tenth MB
but is completely useless while attempting
to access any file exceeding 100MB.
----
conclusion: I'll try to re-implement from scratch
the VirtualText access logic, in order to offer
a decent and robust support for huge-sized files
as well, not only for the smallest ones.
----
BTW, I've found some errors in your sample query
the correct syntax is:
CREATE VIRTUAL TABLE test USING VirtualText ('access_log.1',
'UTF-8',0,'.','"',' ');
bye,
Sandro