Re: [sqlite] Virtual Table: misuse error on sqlite3_declare_vtab()

2013-10-04 Thread Max Vlasov
Simon, don't know what exactly wrong in your particular case, but I'd suggest setting debugger breakpoints everywhere in your x-handlers and notice the moment after which calls are ceased (or you get a error code). Max On Fri, Oct 4, 2013 at 6:07 PM, Simon wrote: > Hi t

Re: [sqlite] Why latest places.sqlite from firefox can't be opened by some older versions of sqlite

2013-08-31 Thread Max Vlasov
On Sat, Aug 31, 2013 at 10:14 PM, Richard Hipp wrote: > On Sat, Aug 31, 2013 at 2:03 PM, Max Vlasov wrote: > >> Hi, >> >> I noticed that opening places.sqlite of my installation of Firefox >> can't be made for example with sqlite 3.6.10, it says that

[sqlite] Why latest places.sqlite from firefox can't be opened by some older versions of sqlite

2013-08-31 Thread Max Vlasov
ation so maybe after several years of upgrading firefox made my particular db semi-valid or something. It's not big deal, just curious, probably ff uses some features making sqlite 3 format incompatible with 3.6.* versions Max ___ sqlite-users ma

Re: [sqlite] Group by in sqlite 3.8 works a little differently depending on the spaces at the end

2013-08-28 Thread Max Vlasov
On Wed, Aug 28, 2013 at 5:11 PM, Igor Tandetnik wrote: > On 8/28/2013 8:57 AM, Max Vlasov wrote: > See the recent discussion at > > http://comments.gmane.org/gmane.comp.db.sqlite.general/83005 > > It's not about trailing spaces, but about whether Title in GROUP BY resol

[sqlite] Group by in sqlite 3.8 works a little differently depending on the spaces at the end

2013-08-28 Thread Max Vlasov
ut the correct way, seems like 3.8 is right (technically the strings are different), but I just wonder why all this time this seems like existed and never noticed. On the other side, mysql of a some old version also showed a single result Max ___ sqlite-

Re: [sqlite] How to create connection life-time object?

2013-07-26 Thread Max Vlasov
not related to sqlite is less pain. > 2.) object is not destroyed together with connection > The same, you're free to use the table just as pointers storage Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bi

Re: [sqlite] How to create connection life-time object?

2013-07-26 Thread Max Vlasov
or inserting an object Insert into MyObjectStorage.[objects] (Name, Ptr) VALUES ('obj1', '0x12345678') This code will query the pointer select Ptr from MyObjectStorage.[objects] where Name='obj1' The only convention rule here will be the name of the atta

Re: [sqlite] Is REAL the best universal data type?

2013-07-23 Thread Max Vlasov
On Tue, Jul 23, 2013 at 10:09 PM, Petite Abeille wrote: > > On Jul 23, 2013, at 9:52 AM, Max Vlasov wrote: > > > Basically it's several tables implementing Object-Propery-Value metaphor > > Hurray! The Entity–attribute–value (EAV) anti-pattern! > > pattern,

Re: [sqlite] Is REAL the best universal data type?

2013-07-23 Thread Max Vlasov
On Tue, Jul 23, 2013 at 1:38 PM, Dan Kennedy wrote: > On 07/23/2013 02:52 PM, Max Vlasov wrote: > >> So >> par adoxically probably the best type for universal field container is >> REAL >> (or NUMERIC) since it will accept data of any type, but has advantage

Re: [sqlite] Is REAL the best universal data type?

2013-07-23 Thread Max Vlasov
show 1, 2, 10, something that's what I wanted (except for "something" being exception) if I change create to CREATE TABLE testtable (id integer primary key, value); then the order will be 1, 10, 2, something. (undesired result) Max _

[sqlite] Is REAL the best universal data type?

2013-07-23 Thread Max Vlasov
ontainer is REAL (or NUMERIC) since it will accept data of any type, but has advantage of best sorting if reals or integers are involved. Is this correct or I am missing something? Thanks, Max ___ sqlite-users mailing list sqlite-users@sqlite.org http:/

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-09 Thread Max Vlasov
very conservative in guessing what can be used around in the future, while file-mapping routines assumes wider ranges around. Sure, after both queries if I don't reset the cache, the repeated query is almost instant. Max On Mon, Apr 8, 2013 at 4:31 PM, Richard Hipp wrote: > On Mon, Apr 8, 2013 at

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-08 Thread Max Vlasov
other expects pointer to the data, the complexity of understanding will grow. Or is there a simple way to disable xFetch/xUnfetch on the VFS level? Max On Mon, Apr 8, 2013 at 3:33 PM, Richard Hipp wrote: > On Mon, Apr 8, 2013 at 6:12 AM, Max Vlasov wrote: > > > But I also noticed

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-08 Thread Max Vlasov
n it should not expect this from client that uses vfs Max On Mon, Apr 8, 2013 at 1:56 PM, Dan Kennedy wrote: > On 04/08/2013 04:40 PM, Max Vlasov wrote: > >> On Mon, Apr 8, 2013 at 1:23 PM, Dan Kennedy >> wrote: >> >> >>> Right. But a VFS is not obliged to sup

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-08 Thread Max Vlasov
probably sqlite tries to call it anyway. - If return SQLITE_Error from xFetch, xUnfetch, I get sqlite logic error. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-08 Thread Max Vlasov
On Sun, Apr 7, 2013 at 2:12 PM, Max Vlasov wrote: > > > > On Thu, Apr 4, 2013 at 4:02 PM, Richard Hipp wrote: > >> We would like to encourage people to try out the new code and >> report both success and failure. >> > > > Not particulary about this d

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-07 Thread Max Vlasov
e, he or she would find a forum topic "Memory mapped file performance" where the first contributor to answers is Igor Tandetnik and we knows that Igor gave very valuable answers also on this list, so he (having good knowledge about both win32 and sqlite) could al

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-07 Thread Max Vlasov
don't know what's wrong with the link, I'm clicking the one from gmail thread and it works. Other way is to google [Unresponsive system under some file-mapping related conditions] and the first result is the thread link Max On Sun, Apr 7, 2013 at 2:25 PM, Jean-Christophe Descham

Re: [sqlite] SQLite 3.7.17 preview - 2x faster?

2013-04-07 Thread Max Vlasov
On Thu, Apr 4, 2013 at 4:02 PM, Richard Hipp wrote: > By making use of memory-mapped I/O, the current trunk of SQLite (which will > eventually become version 3.7.17 after much more refinement and testing) > can be as much as twice as fast, on some platforms and under some > workloads. We would l

Re: [sqlite] integrity_check "out of memory"

2013-01-23 Thread Max Vlasov
On Tue, Jan 22, 2013 at 12:33 PM, Dominique Pellé wrote: > Max Vlasov wrote: > > > Hi, > > > > I found with the web search that this error (out of memory for PRAGMA > > integrity_check) appeared in the wild and there were some fixes related > to > > it

Re: [sqlite] integrity_check "out of memory"

2013-01-22 Thread Max Vlasov
Thanks, Dominique I will try asap, but looking at the arithmetics 25 (The length of "Page ? is never used") * 800 (maximum I could get) = 20,000 (limit mentioned in the ticket ) looks like this is a winner :) Max > Hi Max > > It looks perhaps like the bug that was fi

Re: [sqlite] integrity_check "out of memory"

2013-01-21 Thread Max Vlasov
On Mon, Jan 21, 2013 at 9:30 PM, Klaas V wrote: > Max wrote he's using an encrypted VFS. Perhaps the problem disappears when > he decodes the file? > I tried to do the same for the decrypted file and on another computer, with much more memory. The same result. Probably I I can

[sqlite] integrity_check "out of memory"

2013-01-20 Thread Max Vlasov
check was made with the latest version (3.7.15.2). I got the same error (out of memory) for max values larger than 800, for example PRAGMA integrity_check(801). If I provide the number below or equal to 800, the result is only the (truncated) list of "Page .. is never used". What could go

Re: [sqlite] sqlite 3.7.13 download link

2012-07-08 Thread Max Vlasov
ors" so this was ok for Google to accept slashed version as the main one. Max On Sun, Jul 8, 2012 at 8:38 PM, Keith Medcalf wrote: > > Is everything ok with amalgamation link for sqlite 3.7.13? > > www.sqlite.org/download.html/sqlite-amalgamation-3071300.zip > > Link s

[sqlite] sqlite 3.7.13 download link

2012-07-08 Thread Max Vlasov
OK Connection: close Date: Sun, 08 Jul 2012 16:26:13 + Last-Modified: Thu, 14 Jun 2012 17:02:52 + Content-type: text/html Content-length: 14439 plain html, no redirection Max ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] free list performance

2012-04-23 Thread Max Vlasov
ticed the slowness, I did VACUUM that took almost a half an hour alone because the db contained other persistent data including big indexes. I think handling free list alone (for example allowing sort them only with a pragma) would help in cases like mine but unfortunately will add more confus

[sqlite] free list performance

2012-04-23 Thread Max Vlasov
looks like not only. Even if your data is sequential, but the free_list is fragmented, then you would probably get fragmented internal data. Is it possible to automatically sort free_list from time to time? Or maybe some other solution if this would cost too much? Thanks

Re: [sqlite] Optimize Table Access Efficiency

2012-03-20 Thread Max Vlasov
the db was reopened with a special trick on Windows forcing it to clear cache for this file Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Optimize Table Access Efficiency

2012-03-20 Thread Max Vlasov
erform your first reading forcing this column order and not touching definition at the same time. Since any index is just another b-tree but most of the time smaller you will end up reading a smaller part of file. Although there's a price to pay, yo

Re: [sqlite] The number of parameters passed to user functions

2012-03-13 Thread Max Vlasov
alue**) and never explains the second parameter. I think a short description could be useful Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] The number of parameters passed to user functions

2012-03-13 Thread Max Vlasov
fails. The value for this particular moment is 100 so it's probably some data change related to this 'substr' part when it's used first time due to 'where' success. The version of sqlite 3.7.10 So is there reliable way to find

Re: [sqlite] A possible bug probably partially fixed before

2012-03-12 Thread Max Vlasov
On Fri, Mar 9, 2012 at 12:04 PM, Max Vlasov wrote: > So looks on the way from 3.6.10 to 3.7.10 something was really fixed > related to this issue, but seems like not everything. > > Don't know whether this is serious or a problem at all, but I spent some time with such queries

Re: [sqlite] A possible bug probably partially fixed before

2012-03-09 Thread Max Vlasov
On Fri, Mar 9, 2012 at 12:04 PM, Max Vlasov wrote: > 3.6.10 - > ... actualrndid never gets higher than 900 (wrong) > Sorry, correction, never gets lower than 900 Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:808

[sqlite] A possible bug probably partially fixed before

2012-03-09 Thread Max Vlasov
TABLE [TestTable] ( [Id] INTEGER PRIMARY KEY AUTOINCREMENT ) Let's fill it with numbers from 1 to 1000. For example by repeating INSERT INTO TestTable (id) values ((Select max(id) from TestTable) + 1) The following query is the problem one Select id, MinId, MaxId, abs(random() % (

Re: [sqlite] Once again about file change counter

2012-03-06 Thread Max Vlasov
On Tue, Mar 6, 2012 at 9:55 PM, Roger Binns wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 06/03/12 01:56, Max Vlasov wrote: > > I don't see a problem here. > > ... For example the user could use the app for 3 hours and perform what > they >

Re: [sqlite] Once again about file change counter

2012-03-06 Thread Max Vlasov
On Tue, Mar 6, 2012 at 4:00 PM, Dan Kennedy wrote: > On 03/06/2012 06:45 PM, Max Vlasov wrote: > >> >>> >> It's an interesting suggestion, thanks. I just thought that using xSync I >> even can only implement my own db change counter. In any case the questio

Re: [sqlite] Once again about file change counter

2012-03-06 Thread Max Vlasov
On Tue, Mar 6, 2012 at 2:37 PM, Dan Kennedy wrote: > On 03/06/2012 02:41 PM, Max Vlasov wrote: > >> But for correct work this vfs should rely on the >> fact that file change counter will stay the same until the final write to >> the first sector. >> > >

Re: [sqlite] Once again about file change counter

2012-03-06 Thread Max Vlasov
On Tue, Mar 6, 2012 at 12:22 PM, Roger Binns wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05/03/12 23:41, Max Vlasov wrote: > > One of the recent thought I had was implementing time machine vfs. So > > on the developer level he opens the db e

[sqlite] Once again about file change counter

2012-03-05 Thread Max Vlasov
some conflict with existing sqlite cache is possible. So can vfs in this case work in sync with sqlite or it's too complicated? Thanks, Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] opening places.sqlite from Firefox (10.0.1) profile qAdmin Cannot perform on closed dataset

2012-02-11 Thread Max Vlasov
son it could not open the db, but didn't detect it so allowed database controls and objects accept queries. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Phrase in the docs

2012-02-10 Thread Max Vlasov
s narrowing. Affinity section mentioned the goal of more compatibility, but without numerical literal being treated exactly like numerical fields the compatibility looks a little bit limited. I can live with that , but I think the datatype doc page can also mention this difference. Max __

Re: [sqlite] Phrase in the docs

2012-02-10 Thread Max Vlasov
On Fri, Feb 10, 2012 at 4:53 PM, Richard Hipp wrote: > On Fri, Feb 10, 2012 at 6:11 AM, Max Vlasov wrote: > > > Hi, > > working with sqlite and mysql, noticed that they're different in regard > of > > mixed types. > > Select '24' < 25 > &g

[sqlite] Phrase in the docs

2012-02-10 Thread Max Vlasov
ty, numeric values on the right-hand side of the comparisons are converted to text before the comparison occurs. Shouldn't the first be fixed to end with "...then TEXT affinity is applied to other operand"? Max ___ sqlite-users mailing

Re: [sqlite] Inserts get slower and slower

2012-02-08 Thread Max Vlasov
y caching. The following slowness is the result of the internal fragmentation - You have successive unix_time, but when it goes beyond 32-bit limit your software wraps around 32-bit value instead of going 64 bit. Max ___ sqlite-users mailing list sqli

Re: [sqlite] About new ticket "Per page/region checksums"

2012-02-07 Thread Max Vlasov
ing, i.e as a recommendation to rebuild checksum db (although don't know whether the vfs can report some existing error). The same effect can be if the chk file is missing. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] List of DB virtual modules

2012-01-23 Thread Max Vlasov
On Mon, Jan 23, 2012 at 5:36 PM, Richard Hipp wrote: > On Mon, Jan 23, 2012 at 8:06 AM, Max Vlasov wrote: > > > > it there an easy way (without manual statements parsing) to get the list > of > > modules used in all (if any) virtual tables statements of the schema? ...

[sqlite] List of DB virtual modules

2012-01-23 Thread Max Vlasov
Hi, it there an easy way (without manual statements parsing) to get the list of modules used in all (if any) virtual tables statements of the schema? For any opened db I wanted to automatically enable found modules (if I recognize them) and warn if there are unsupported ones. Thanks, Max

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-20 Thread Max Vlasov
On Fri, Jan 20, 2012 at 10:05 PM, John Elrick wrote: > The change which results in a slow down occurred between 3.7.5.0 and > 3.7.6.0. > > What about EXPLAIN difference? Or just outputs of this prefix from both versions? Max ___ sqlite-u

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-19 Thread Max Vlasov
Dan look at the difference in the vdbe code, they could notice something Max On Fri, Jan 20, 2012 at 1:17 AM, John Elrick wrote: > One more useful comparison. The following query is prepared and step is > called with these results: > > __

Re: [sqlite] Collecting return values from sql commands using SQLite APIs.

2012-01-19 Thread Max Vlasov
; It's the same api that returns values for SELECT * FROM table; Only for Count(*) you result is one row and one column Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] msize in 3.7.10

2012-01-18 Thread Max Vlasov
On Wed, Jan 18, 2012 at 4:47 PM, Richard Hipp wrote: > On Tue, Jan 17, 2012 at 9:11 AM, Max Vlasov wrote: > > > Hi, > > I'm using static linking with Delphi and a new function required binding > in > > 3.7.10 - msize (__msize). > > ... > > Try using

Re: [sqlite] msize in 3.7.10

2012-01-18 Thread Max Vlasov
SQLITE_OS_WIN # define HAVE_MALLOC_USABLE_SIZE 1 # define malloc_usable_size _msize #endif .with #if defined(HAVE_MALLOC_USABLE_SIZE) && SQLITE_OS_WIN # define malloc_usable_size _msize #endif isn't it a proper fix for HAVE_MALLOC_USABLE_SIZE to work on windows? I compiled, it doesn'

Re: [sqlite] msize in 3.7.10

2012-01-18 Thread Max Vlasov
On Tue, Jan 17, 2012 at 6:11 PM, Max Vlasov wrote: > Hi, > I'm using static linking with Delphi and a new function required binding > in 3.7.10 - msize (__msize). The problem here is that there's no official > way to query the size of a memory block in Delphi memory manag

[sqlite] msize in 3.7.10

2012-01-17 Thread Max Vlasov
mple by keeping my own list of blocks and their sizes) or is there some other solution (enabled/disable some define)? Thanks, Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-16 Thread Max Vlasov
e very strange and he had to implement a sophisticated stack analysis for many real world examples Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-16 Thread Max Vlasov
ws cache, not sqlite), the time is about 7-11 seconds. But I think a test db with test data would be more useful for understanding. Can you upload it? Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-16 Thread Max Vlasov
On Sun, Jan 15, 2012 at 3:35 AM, John Elrick wrote: > On Fri, Jan 13, 2012 at 5:13 PM, Max Vlasov wrote: > > 5,008 calls to > > UPDATE RESPONSES SET > RESPONSE_NAME = :RESPONSE_NAME, > prelisted_value = :prelisted_value > WHERE RESPONSE_OID = :RESPONSE_OID > > 3.

Re: [sqlite] SSD with TRIM

2012-01-15 Thread Max Vlasov
least on some of the current platform (linux, can you confirm?). Probably the page size is a parameter that also should be adjusted for optimal performance. I suppose it can be different for different ssd models, but it's just a guess. Max ___

Re: [sqlite] SSD with TRIM

2012-01-14 Thread Max Vlasov
On Sat, Jan 14, 2012 at 11:52 PM, Simon Slavin wrote: > > On 14 Jan 2012, at 7:24pm, Max Vlasov wrote: > > > On Sat, Jan 14, 2012 at 6:12 AM, Simon Slavin > wrote: > > > >> Fast. Fasty fast. Speed is high. INSERT, UPDATE, and DELETE all > >> signific

Re: [sqlite] SSD with TRIM

2012-01-14 Thread Max Vlasov
000 inserts should create a 1GB base and the time with general hd was above 15 minutes, maybe even half an hour. So I'm very interested to see was there any progress with overall ssd performance. Thanks, Max ___ sqlite-users mailing list sqlite-users@

Re: [sqlite] Some pieces of the puzzle are coming together

2012-01-13 Thread Max Vlasov
ne of the places that allocated heavily with some queries, but I can't recall right now. Max On Sat, Jan 14, 2012 at 1:49 AM, John Elrick wrote: > Richard and all, > > On January 6, I wrote a posting (Problems encountered while upgrading > Sqlite from 3.6.7 to 3.7.9) concerning

Re: [sqlite] Resetting virtual table

2012-01-13 Thread Max Vlasov
On Fri, Jan 13, 2012 at 3:02 PM, Dan Kennedy wrote: > On 01/13/2012 03:31 PM, Max Vlasov wrote: > >> As I see sqlite can accept the schema of a virtual table >> (Sqlite3_declare_vtab) only in the context of xCreate or xConnect. But if >> I >> want to refresh not onl

[sqlite] Resetting virtual table

2012-01-13 Thread Max Vlasov
clipboard has changed and I want the new select to contain not only new rows, but also new columns (if this new contents is different to the previous one). Thanks, Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman

[sqlite] formatting sqlite_master differently

2012-01-12 Thread Max Vlasov
ome other tricks with sqlite_master here Thanks, Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Unexplained minor regression (bug) 3.7.8 up

2011-12-06 Thread Max Vlasov
On Tue, Dec 6, 2011 at 9:49 PM, Dan Kennedy wrote: > On 12/06/2011 03:28 PM, Max Vlasov wrote: > >> Hi, >> Noticed a strange regression after 3.7.7 (in 3.7.8 and inherited in 3.7.9) >> >> > There is a candidate fix for this in fossil now. > > Dan, thank

[sqlite] Unexplained minor regression (bug) 3.7.8 up

2011-12-06 Thread Max Vlasov
SrcWord LIMIT 1)) Sqlite versions before 3.7.7 (inclusive) returns results (2 rows). 3.7.8 and above shows empty result set Thanks, Max Vlasov ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] splitting a line to produce several lines?

2011-09-12 Thread Max Vlasov
If you're on windows and ready to test your conversion with my tool, consider writing to me directly Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Split Function for SQLite?

2011-08-25 Thread Max Vlasov
On Thu, Aug 25, 2011 at 9:34 AM, Max Vlasov wrote: > > Also theoretically it is possible to use virtual tables for this. So > when your virtual query implementation accepts list in some way ('23, > 14, 1, 7, 9') and returns the table when querying > I tried to implemen

Re: [sqlite] Split Function for SQLite?

2011-08-24 Thread Max Vlasov
st in some way ('23, 14, 1, 7, 9') and returns the table when querying Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Feature request: extend the IN operator

2011-08-07 Thread Max Vlasov
tion. there it was comma-delimited, but it's not that important, I'm sure you can change it to any other symbol in your data Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Will SQLite supports UnQL?

2011-07-30 Thread Max Vlasov
honestly I've already very impressed :) Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Exclusive locking mode not working as expected?

2011-07-29 Thread Max Vlasov
ement your own virtual file system for your files. But just curious, do you really want to give your users an "official" way to manipulate sqlite files manually? I know that many advanced users know what sqlite really is and try to do some back-up by hands, but they also shoul

Re: [sqlite] SELECT query first run is VERY slow

2011-07-28 Thread Max Vlasov
'd rather ask Richard or Dan writing their resolution here about either behavior is by design or the issue is acknowledged and (maybe) will be fixed. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/l

Re: [sqlite] SELECT query first run is VERY slow

2011-07-26 Thread Max Vlasov
al treatment and not used effectively. This still has to be explained. But if your requirements to your base allows you to add extra field, I think you can use it, just support autoincrement feature some other way. Max ___ sqlite-users mailing list sql

Re: [sqlite] SELECT query first run is VERY slow

2011-07-26 Thread Max Vlasov
id>100 explain query plan > SEARCH TABLE abctable USING COVERING INDEX idxabid (a=? AND b=?) (~3 rows) I assume the optimizer could use the following "plan" ... COVERING INDEX idxabid (a=? AND b=? AND rowid>?) but it didn't. Maybe for a reason... Max

Re: [sqlite] SELECT query first run is VERY slow

2011-07-26 Thread Max Vlasov
reads few data (3k actually for 100,000 records) to show empty result Another variant CREATE INDEX idxabid ON abctable (a, b, id) SELECT * FROM abctable WHERE a=10 and b=20 and id > 100 Sqlite reads much (1,7MB) Checked with 3.7.6.2, I suppose the latt

Re: [sqlite] SELECT query first run is VERY slow

2011-07-25 Thread Max Vlasov
created index or still the one that was created during the lifetime of your program? Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SELECT query first run is VERY slow

2011-07-22 Thread Max Vlasov
e data will contain many records and sqlite should read the index that is internally fragmented due to the reasons explain above. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SELECT query first run is VERY slow

2011-07-22 Thread Max Vlasov
with kind='info' and computer = 'KRAFTWAY' in your database. So sqlite really uses the index for locating your records. But the problem is also that your db is very fragmented so sqlite when reading the index actually reads different parts of this file and it makes the windows cache sys

Re: [sqlite] SELECT query first run is VERY slow

2011-07-22 Thread Max Vlasov
ds, second: 1 second. > What about Read Bytes? How much did sqlite.exe actually read during the run? Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SELECT query first run is VERY slow

2011-07-22 Thread Max Vlasov
one selects the column for the latter) for every process so if Grigory shares this info with us, this will be very useful. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SELECT query first run is VERY slow

2011-07-22 Thread Max Vlasov
query. This also can give a hint about the software that possibly reads the file all the this time. Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] randomness issues on windows

2011-06-27 Thread Max Vlasov
ent So you probably have to look in a different layer Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Substring question

2011-06-25 Thread Max Vlasov
u didn't write any before, believe be, it's very easy. If you go this way I recommend keeping compatibility at least with MySql in this case (so either "position" or "locate" with the corresponding parameters). This will give you theoretical possibility to export you st

Re: [sqlite] The last records of a query

2011-06-25 Thread Max Vlasov
On Sat, Jun 25, 2011 at 11:26 AM, Cecil Westerhof wrote: > With LIMIT you can get the first N records of a SELECT. Is it also possible > to get the last N records? > > Use ORDER BY ... DESC. Sure, if you have a large dataset, it'd better

Re: [sqlite] Query with UNION on large table

2011-06-23 Thread Max Vlasov
x27;s reasonable to switch completely to memory temporary storage? (PRAGMA temp_store=2;). In best scenario no disk will be involved until sqlite will be merging two b-trees for your "create table as" Max ___ sqlite-users mailing list sqlite-users@s

Re: [sqlite] Query with UNION on large table

2011-06-23 Thread Max Vlasov
, sqlite probably does these temporary tables creation. I noticed that fewer reads/writes will be with the following variant SELECT * FROM (SELECT n1, n2 FROM table1 Where n1 < n2) UNION SELECT * FROM (SELECT n2, n1 FROM table1 Where n2 < n1) since this one decreases the size

Re: [sqlite] Bug in composite foreign key constraints.

2011-06-10 Thread Max
Glad to be of service, and thanks for the quick turn around. On 11-06-10 02:35 PM, Dan Kennedy wrote: > On 06/11/2011 12:08 AM, Max wrote: >> CREATE TABLE TestTable ( >>id integer primary key, >>name varchar, >>source_id integer not null,

Re: [sqlite] Bug in composite foreign key constraints.

2011-06-10 Thread Max
rote: > On 06/10/2011 10:33 PM, Max wrote: >> I just grabbed a 3.7.6.3 binary from the sqlite page. The second schema >> still fails to throw a constraint error. > Hopefully fixed here: > > http://www.sqlite.org/src/info/442d8d8bfe > > Grab the zip

Re: [sqlite] Bug in composite foreign key constraints.

2011-06-10 Thread Max
I just grabbed a 3.7.6.3 binary from the sqlite page. The second schema still fails to throw a constraint error. On 11-06-10 11:22 AM, Pavel Ivanov wrote: > IIRC, there was a bug in enforcement compound foreign keys where one > of columns is primary key and it was fixed. So if you take the lates

[sqlite] Bug in composite foreign key constraints.

2011-06-10 Thread Max B
Hello, Please consider this (working) schema and this test data, on sqlite 3.7.4: CREATE TABLE TestTable ( id integer primary key, name varchar, source_id integer not null, parent_id integer, foreign key(parent_id) references TestTable(id) ); PRAGMA foreign_keys=1; INSERT INT

Re: [sqlite] Dynamically loaded sqlite (linux)

2011-06-10 Thread Max Vlasov
ed to act as independent entities without faults But what about the last comment (about POSIX.1-2001). Does it mean some distros could not support it? Max ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Dynamically loaded sqlite (linux)

2011-06-09 Thread Max Vlasov
On Thu, Jun 9, 2011 at 6:21 PM, Pavel Ivanov wrote: > > > So if you ever want to use dlopen() you should be really really > careful to avoid loading the same library several times (even if the > same library have different file names). > > Pavel, thanks for the hint and

Re: [sqlite] Dynamically loaded sqlite (linux)

2011-06-09 Thread Max Vlasov
On Tue, Jun 7, 2011 at 9:22 PM, Martin Gadbois wrote: > On Tue, Jun 7, 2011 at 12:52 PM, Jay A. Kreibich wrote: > > > On Tue, Jun 07, 2011 at 07:47:25PM +0400, Max Vlasov scratched on the > wall: > > > Hi, > > > > > > I'm trying to use sqlite wi

[sqlite] Dynamically loaded sqlite (linux)

2011-06-07 Thread Max Vlasov
ndup(n) in mallocWithAlarm gives SIGSEGV error. - If I map sqlite3_initialize to init, the same happen with the first call to sqlite3_mutex_enter call. The library is build with gcc -g -c -fPIC sqlite3.c gcc -shared -Wl,-init=sqlite3_initialize -o customsqlite.so sqlite3.o What am I missing here? Th

Re: [sqlite] Extremely large values error

2011-03-30 Thread Max Vlasov
On Tue, Mar 29, 2011 at 8:17 PM, Ralf Junker wrote: > On 29.03.2011 15:17, Max Vlasov wrote: > > > Thanks, this forced me to search more on the topic. I use Delphi and it > > appears that all Borland compilers has their own floating-point exception > > handling chain an

Re: [sqlite] Extremely large values error

2011-03-29 Thread Max Vlasov
On Tue, Mar 29, 2011 at 3:56 PM, Richard Hipp wrote: > On Tue, Mar 29, 2011 at 4:48 AM, Max Vlasov wrote: > > > Hi, > > > > I sometimes use repeated digits as test data, for example 123456789 > > repeated > > multiply times and recently some of my co

[sqlite] Extremely large values error

2011-03-29 Thread Max Vlasov
the result of this query in my case is 'unknown error' and no data shown. Can it be considered a bug? The worst part of this error is that one needs very deep investigation especially for long queries to understand what is going on. Thanks, Max ___

Re: [sqlite] Best approach for xBestIndex/xFilter effectiveness

2011-03-22 Thread Max Vlasov
On Tue, Mar 22, 2011 at 2:25 PM, Dan Kennedy wrote: > On 03/22/2011 04:26 PM, Max Vlasov wrote: > > Hi, > > > > recently I finally started experimenting with virtual tables and there's > at > > least one thing I can not understand. > > > > As I see

Re: [sqlite] Create table if not exists and insert seed data

2011-03-22 Thread Max Vlasov
ike CREATE TABLE IF NOT EXISTS [newTable] AS SELECT * FROM DataToPopulate DataToPopulate can be a table from the db or temporary table created for example when the program starts. Max Vlasov ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

<    1   2   3   4   5   >