Re: cannot make indexes on long varchar?

2018-12-01 Thread Rick Hillegas

On 12/1/18 5:48 AM, Alex O'Ree wrote:

Is there a particular reason we can't do indexes on long varchar columns?


You can use VARCHAR(32672) instead of LONG VARCHAR. Then you can create 
indexes on these columns.


Hope this helps,

-Rick



Re: cannot make indexes on long varchar?

2018-12-01 Thread Peter Ondruška
Not true, you can index such columns but it does not make sense using
standard as Mikael explained. For such follow Using the luceneSupport
optional tool
.


On Sat, 1 Dec 2018 at 14:48, Alex O'Ree  wrote:

> Is there a particular reason we can't do indexes on long varchar columns?
>


-- 
Peter Ondruška

-- 
kaibo, s.r.o., ID 28435036, registered with the commercial register 
administered by the Municipal Court in Prague, section C, file 141269.

Registered office and postal address: kaibo, s.r.o., Kališnická 379/10, 
Prague 3, 130 00, Czech Republic.
https://www.kaibo.eu 



Re: cannot make indexes on long varchar?

2018-12-01 Thread Mikael
I would think it's because long columns will not work anway (half page 
size).


"Indexes

Indexes are not supported for columns defined on CLOB, BLOB, LONG 
VARCHAR, and XML data types.


If the length of the key columns in an index is larger than half the 
page size of the index, creating an index on those key columns for the 
table fails. For existing indexes, an insert of new rows for which the 
key columns are larger than half of the index page size causes the 
insert to fail.


Avoid creating indexes on long columns. Create indexes on small columns 
that provide a quick look-up to larger, unwieldy data in the row. You 
might not see performance improvements if you index long columns. For 
information about indexes, see /Tuning Java DB/."


Den 2018-12-01 kl. 14:48, skrev Alex O'Ree:

Is there a particular reason we can't do indexes on long varchar columns?


cannot make indexes on long varchar?

2018-12-01 Thread Alex O'Ree
Is there a particular reason we can't do indexes on long varchar columns?