You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT INTO columnar(identifier, column2)
SELECT identifier, 'Some random strings'FROM generate_series(1,1000000) identifier;
INSERT INTO regular(identifier)
SELECT identifier
FROM generate_series(1,1000000) identifier;
As you can see, regular identifiers and columnar identifiers matches.
Now let's try to select the second column directly from the columnar table.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Example to illustrate issue:
Let's create columnar and regular tables, with the same identifiers.
and simple regular table:
Let's populate them:
As you can see, regular identifiers and columnar identifiers matches.
Now let's try to select the second column directly from the columnar table.
This one nicely uses chunk groups filtering, and generates plan like this:
But fetching those records through join, with logically same condition, doing full table scan:
What is the reason? Because of that behavior, I will not use the feature, in the place, where it seems to me like a game changer ;/.
Thank you for explanation!
Beta Was this translation helpful? Give feedback.
All reactions