Re: [sqlite] Possible issue in optimizer, strips away order by

2014-03-01 Thread nobre
Great, thanks! 2014-02-26 0:11 GMT-03:00 Richard Hipp-3 [via SQLite] ml-node+s1065341n74140...@n5.nabble.com: On Tue, Feb 25, 2014 at 1:11 PM, nobre [hidden email]http://user/SendEmail.jtp?type=nodenode=74140i=0 wrote: Hi! Given this schema: create table q (id integer primary key

[sqlite] Possible issue in optimizer, strips away order by

2014-02-25 Thread nobre
Hi! Given this schema: create table q (id integer primary key, idLevel integer); create table level (id integer primary key); insert into q values(1, 1); insert into q values(2, 1); insert into q values(3, 1); insert into level values(1); When running this query: select p.* FROM q as p inner

Re: [sqlite] Threading makes SQLite 3x slower??

2013-08-20 Thread nobre
What is the output of EXPLAIN QUERY PLAN your query ? -- View this message in context: http://sqlite.1065341.n5.nabble.com/Threading-makes-SQLite-3x-slower-tp62243p70582.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users

Re: [sqlite] FTS4 search for terms inside a word

2013-07-22 Thread nobre
Unfortunately FTS is only able to do prefix search, not sufix. -- View this message in context: http://sqlite.1065341.n5.nabble.com/FTS4-search-for-terms-inside-a-word-tp70196p70218.html Sent from the SQLite mailing list archive at Nabble.com. ___

Re: [sqlite] GUI for SQLite

2013-06-28 Thread nobre
I've been impressed by sqliteexpert Personal Edition (for Windows) I haven't found a great one for OSX yet. -- View this message in context: http://sqlite.1065341.n5.nabble.com/GUI-for-SQLite-tp11673p69729.html Sent from the SQLite mailing list archive at Nabble.com.

Re: [sqlite] sqlite port to android

2013-04-13 Thread nobre
Android does have SQLite builtin, however it is under a rather large amount of abstractions that does not correlate directly to the SQLite API, making it difficult to port code between platforms. Another issue is, each manufacturer / device / firmware version have a different build of SQLite, some

Re: [sqlite] sqlite port to android

2013-04-13 Thread nobre
Android does have SQLite builtin, however it is under a rather large amount of abstractions that does not correlate directly to the SQLite API, making it difficult to port code between platforms. Another issue is, each manufacturer / device / firmware version have a different build of SQLite, some

Re: [sqlite] max size of a TEXT field

2012-07-03 Thread nobre
http://www.sqlite.org/limits.html -- View this message in context: http://sqlite.1065341.n5.nabble.com/max-size-of-a-TEXT-field-tp63069p63070.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list

Re: [sqlite] escaping GLOB pattern

2012-06-19 Thread nobre
If the optional ESCAPE clause is present, then the expression following the ESCAPE keyword must evaluate to a string consisting of a single character. This character may be used in the LIKE pattern to include literal percent or underscore characters. The escape character followed by a percent

Re: [sqlite] Building an fts Query for Double Quote

2012-06-19 Thread nobre
With the default tokenizer your index would split such an input (quot'ed) into 'quot' and 'ed' , you wouldn't get a hit for a phrase such as quot''ed. If you use a custom tokenizer , you CAN use in your terms/queries, however it won't work for phrases, only for single tokens From the fts3aux.c

Re: [sqlite] FTS4 Questions

2012-06-12 Thread nobre
There was a somehow recent change in the snippets algorithm, it used to return snippets from a number of columns in a single row if there were multiple matches, separated with Now, it will try to find a fragment of the row that contains ALL search terms, using snippets from the other columns

Re: [sqlite] Sql Unions

2012-02-10 Thread nobre
What is the query , and what error do you encounter ? SQLite does support UNION and UNION ALL Regards nobre David Hubbard-4 wrote: We are looking at using SqlLite from an access application, but we have run into troubles executing a query that has a UNION. Does SqlLite support Unions? Any

Re: [sqlite] sqlite3_column_text() returning partial results

2011-12-21 Thread nobre
Is there any chance you are storing a \0 char inside the xml ? Jacob A. Camp wrote: Hello, I've been looking into an issue that a few of our programmers have looked at as well and it left us all wondering. Basically, our database has a VARCHAR column that has an XML file written to it

Re: [sqlite] FTS: Phrase queries

2011-11-14 Thread nobre
Comment from the source: ** TODO: Strangely, it is not possible to associate a column specifier ** with a quoted phrase, only with a single token. Not sure if this was ** an implementation artifact or an intentional decision when fts3 was ** first implemented. Whichever it was, this

[sqlite] Segment merging in FTS and updates-deletes

2011-11-11 Thread nobre
Hi, I'm studying the indexing mechanism of FTS3/4, I can pretty much understand how doclists, terms, segments are created and stored, but one thing I can't grasp is about updating and deleting docs and keeping up the index up to date. From the source comments: [quote] ** Since we're using a

Re: [sqlite] FTS4: Datatypes

2011-11-10 Thread nobre
Looks promising! With the me triggers mentioned in http://www.sqlite.org/src/artifact/fdc666a70d5257a64fee209f97cf89e0e6e32b51 , it can be a really time saver. Its awful having to deal with two tables that store a single, split up entity, also the inability to create additional indexes on the

Re: [sqlite] Slow INDEX

2011-11-03 Thread nobre
Have you tried setting journal_mode to the default DELETE option ? Without atommic commits, maybe your inserts are going to disk one by one instead of in a single step, when commiting your transactions, thus slowing down disk writes. Fabian-40 wrote: 2011/11/2 Black, Michael (IS) I do not

Re: [sqlite] Bug in using overloaded functions for virtual tables?

2011-10-26 Thread nobre
Here are the opcodes generated for each operation using the EXPLAIN command sqlite explain select offsets(pasta_text), DataPasta from pasta_text where past a_text match 'andamento*'; addr opcode p1p2p3p4 p5 comment -

Re: [sqlite] Bug in using overloaded functions for virtual tables?

2011-10-19 Thread nobre
Stepping through execution for queries with and without GROUP BY clauses, I could see that, when preparing a query containing a Group By clause, the parser assigns a TK_AGG_COLUMN type to first argument of the offsets() and snippet() functions, thus breaking out of sqlite3VtabOverloadFunction()

Re: [sqlite] Bug in using overloaded functions for virtual tables?

2011-10-18 Thread nobre
I experience the same situation on the following query: select offsets(pasta_text), snippet(pasta_text), DataPasta from pasta_text WHERE pasta_text match 'andamento*' group by DataPasta order by DataPasta Which desired output would be all matches grouped by date (the full query is joined from