When shall I add ENCODING RLE for column during create projection
pdhokte
Vertica Customer
For example,
We have user_events table containing columns session_id, visitor_id & user_id.
The table has
total record count = 1 billion
distinct count for session_id = 100 million (10 records per session_id)
distinct count for visitor_id = 10 million (100 records per visitor_id)
distinct count for user_id = 1 million (1000 records per user_id)
For which columns shall I add 'ENCODING RLE'?
Tagged:
0
Answers
Vertica's Database Designer can suggest optimized encodings with a single function:
SELECT DESIGNER_DESIGN_PROJECTION_ENCODINGS('projection_name','');
This will write a proposed projection DDL to the console. For more info and options, see the documentation:
https://www.vertica.com/docs/11.1.x/HTML/Content/Authoring/SQLReferenceManual/Functions/VerticaFunctions/DatabaseDesigner/DESIGNER_DESIGN_PROJECTION_ENCODINGS.htm