powered by simpleCommunicator - 2.0.51     © 2025 Programmizd 02
Форумы / Firebird, InterBase [игнор отключен] [закрыт для гостей] / Lateral join in FB4?
4 сообщений из 4, страница 1 из 1
Lateral join in FB4?
    #39740478
Dorin Marcoci
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Sorry to write You in English this time, dont have a russian layout here :(

A question more to FB developers or people that know internal kitchen :)
Any news on http://tracker.firebirdsql.org/browse/CORE-3435
I see it is marked as fix version FB4 Beta1. Is it scheduled to be released in FB4 or is this feature already available in beta or should it yet to be implemented?

Last time we do web projects with FB as backend DBMS and usually displays data as paged with first/rows clause, so instead of use CTEs this way will be more convenient ...

Saw Postgres implemented it about 4 years ago.. would be really fine to have this feature also in FB.

Thanks!
...
Рейтинг: 0 / 0
Lateral join in FB4?
    #39740482
Фотография Симонов Денис
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Dorin Marcoci,

до тех пор пока Дмитрий не закомитит репликацию в 4.0 у него нет времени этим заниматься.
В Beta1 будет вряд ли, а в Beta2 может быть.
...
Рейтинг: 0 / 0
Lateral join in FB4?
    #39740531
Dorin Marcoci
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Okay, thanks for info, Denis !

Or at least I hope they will improve the optimizer to avoid unneeded scanning of joined tables on requests like this:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
select
  o.id, o.amount,
  c.name as client_name, g.name as group_name
from orders o
left join clients c on (c.id on o.client_id)
left join groups g on (g.id on o.group_id)
rows 1000000 to 1000020

Here clients and groups may return at least one row, but the engine still scan one million of these tables without any reason...
It should detect somehow, may the joined table return more than one row or not.
...
Рейтинг: 0 / 0
Lateral join in FB4?
    #39740550
Фотография Симонов Денис
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Dorin Marcoci,

вот этого никто не обещал в 4.0. Из оптимизатора: хотели научить для внешних соединений использовать HASH JOIN когда нет возможности использовать индекс.
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Firebird, InterBase [игнор отключен] [закрыт для гостей] / Lateral join in FB4?
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]