Re: BUG #15285: Query used index over field with ICU collation insome cases wrongly return 0 rows
В списке pgsql-bugs по дате отправления:
| От | Jehan-Guillaume de Rorthais |
|---|---|
| Тема | Re: BUG #15285: Query used index over field with ICU collation insome cases wrongly return 0 rows |
| Дата | |
| Msg-id | 20200613004322.3bcc37f6@firost обсуждение исходный текст |
| Ответ на | Re: BUG #15285: Query used index over field with ICU collation insome cases wrongly return 0 rows (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>) |
| Ответы |
Re: BUG #15285: Query used index over field with ICU collation in some cases wrongly return 0 rows
|
| Список | pgsql-bugs |
On Fri, 12 Jun 2020 18:40:55 +0200 Jehan-Guillaume de Rorthais <jgdr@dalibo.com> wrote: > On Wed, 10 Jun 2020 00:29:33 +0200 > Jehan-Guillaume de Rorthais <jgdr@dalibo.com> wrote: > [...] > > After playing with ICU regression tests, I found functions ucol_strcollIter > > and ucol_nextSortKeyPart are safe. I'll do some performance tests and report > > here. > > I did some benchmarks. See attachment for the script and its header to > reproduce. > > It sorts 935895 french phrases from 0 to 122 chars with an average of 49. > Performance tests were done on current master HEAD (buggy) and using the patch > in attachment, relying on ucol_strcollIter. > > My preliminary test with ucol_getSortKey was catastrophic, as we might > expect. 15-17x slower than the current HEAD. So I removed it from actual > tests. I didn't try with ucol_nextSortKeyPart though. > > Using ucol_strcollIter performs ~20% slower than HEAD on UTF8 databases, but > this might be acceptable. Here are the numbers: > > DB Encoding HEAD strcollIter ratio > UTF8 2.74 3.27 1.19x > LATIN1 5.34 5.40 1.01x > > I plan to add a regression test soon. Please, find in attachment the second version of the patch, with a regression test. Regards,
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера