14. funnel_events(events hstore[], pattern_array text[]) RETURNS int[]
-- Returns an array with 1s corresponding to steps completed
-- in the funnel, 0s in the other positions
SELECT sum(
funnel_events(
events,
ARRAY['"path"=>"/","object"=>"pageview"',
'"type"=>"submit","hierarchy"=>like "%@form;#signup;%"']
)
) AS "funnel_results"
FROM users
WHERE app_id = 12345
15. ● Denormalized schema. (No joins.)
● CitusDB to distribute queries.
● Express any analysis with UDFs.