I agree with Tom. With the proper indexes a single table for all
languages is the way to go.
I don't think a view for each language is necessary--just make a
function that takes language and whatever you use to look up the
localized strings, and returns the localized string.
Further, there are
I clearly am not in the right mindset to be answering list emails.
Please ignore my response (it's too late now)--back to my stressful
deadline.
Strange that it's implemented for prefix and not postfix?
Wes
On Wed, Aug 5, 2009 at 8:58 PM, Lukas Haase<lukasha...@gmx.at> wrote:
> We
Why not LIKE '%otor'?
Wes
On Wed, Aug 5, 2009 at 7:47 PM, Lukas Haase wrote:
> Hi,
>
> It's me again, sorry. The next big problem concerning FTS. I have the
> requirement to do postfix searches, like:
>
> SELECT topic_title FROM topics
> WHERE topic MATCH '*otor'
> ORDER BY
It's possible that the question was referring to this statement in the
About page on sqlite.org:
"SQLite is an embedded SQL database engine. Unlike most other SQL
databases, SQLite does not have a separate server process. SQLite
reads and writes directly to ordinary disk files. A complete SQL
Yeah, sorry about that. In two statements:
select max(number) from table where number < ?
select min(number) from table where number > ?
if you want to merge them into a single statement, you can do:
select (select max(number) from table where number < ?)
highest_smaller, (select min(number)
Sorry, I misread the question...
Still, I think min/max are better than order by limit 1.
Wes
On Mon, Jul 13, 2009 at 7:24 PM, Wes Freeman<freeman@gmail.com> wrote:
> Select max(number), min(number) from table;
>
> Wes
>
> On Mon, Jul 13, 2009 at 7:16 PM, Bogdan Nicula
Select max(number), min(number) from table;
Wes
On Mon, Jul 13, 2009 at 7:16 PM, Bogdan Nicula wrote:
>
>
> Hi,
>
> Sorry for my lack of SQL knowledge which triggered this help request:
> Given a column containing numbers, which is the most efficient manner to find
> out
This will create another table TmpTable (tax, direction), using the
values from the table MarketTable:
create table TmpTable as
select tax,
(select
case when b.tax < MarketTable .tax
then "Up"
when b.tax>=MarketTable .tax
then "Down"
else null
end
from MarketTable b
where
If you want to use the rowid to order the rows (or an
auto-incrementing primary key field), you could do something like
this:
update tst
set Direction=
(select
case when b.tax < tst.tax then "Up"
when b.tax>=tst.tax then "Down"
else null
end
from tst b
where b.rowid=tst.rowid-1)
VACUUM cleaned up the file in my current test, after 1200 iterations,
making it run at ~4.6seconds again, rather than ~5.1. It seemed to get
it almost back to the performance of a clean file.
Didn't know about the vacuum command--Cool. By the way, the vacuum
operation takes ~1.6 seconds for my
On Tue, Jun 16, 2009 at 2:51 PM, Jens Páll
Hafsteinsson wrote:
> Closing and opening again did not speed up steps 1-4, it actually slowed
> things down even more. The curve from the beginning is a bit similar to a
> slightly flattened log curve. When I closed the database and
11 matches
Mail list logo