Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Select по полю типа "nvarchar"

2 views
Skip to first unread message

jula

unread,
May 14, 2002, 11:28:35 AM5/14/02
to
Может кто сталкивался с проблемой, когда select по полю типа "nvarchar"
выполняется долго вне зависимости от наличия индекса по данному полю.

Igor Zavgorodny

unread,
May 14, 2002, 1:25:52 PM5/14/02
to
ju...@nafta.poltava.ua wrote:
>Может кто сталкивался с проблемой, когда select по полю типа "nvarchar"
>выполняется долго вне зависимости от наличия индекса по данному полю.
1. После построения индекса выполнялся update statistics? Если нет, то
выполнить.
2. Иначе, set explain on; выполнить запрос. Разобратся с файлом
sqlexplain.out.
3. Иначе, результаты п.2, +информацию о версии и платформе Вашего зверя
сообщить в конференцию.

Regards, Igor.

Leonid Vorontsov

unread,
May 21, 2002, 4:22:46 AM5/21/02
to
"jula" <ju...@nafta.poltava.ua> wrote in message news:3ce12d20$1@shark...

> Может кто сталкивался с проблемой, когда select по полю типа "nvarchar"
> выполняется долго вне зависимости от наличия индекса по данному полю.
Я! Я сталкивался :-)
NVARCHAR (как впрочем и NCHAR) лучше не использовать.
До версии 7.31.TC5, можно сказать, вообще не работало,
сейчас вроде получше стало, но всё равно криво.
Бывают, например, такие случаи:

13:33:18 Assert Failed: Exception Caught. Type: MT_EX_OS, Context: mem
13:33:18 Informix Dynamic Server Version 7.31.TC5
13:33:18 Who: Session(2647, info...@leonid.dati-grupa.lv, 553, 0)
Thread(6482, sqlexec, 0, 1)
Exception at Addr: 0x4d2aa8, TOS: 0x176a7cd0, FP:0x176a7d24,
Exc: c0000005
13:33:18 Action: Please notify Informix Technical Support.
13:34:07 Releasing server from system block
13:39:09 VP Notify mechanism incomplete after 5 minutes. This can be due to
slow network file access. Will try 12 more times
13:44:10 VP Notify mechanism incomplete after 5 minutes. This can be due to
slow network file access. Will try 11 more times
13:45:49 See Also: af.1d3ae7ed
13:45:49 (2652) Unable to initiate asyncronous read operation
13:45:49 VP Notify mechanism completed

0 new messages