The following is how I currently parse parameters from an url query string. Does anyone know of a nicer and faster solution? Thx.
select
id,
url,
split_part(regexp_split_to_table((regexp_matches(url, '\?(.*)'))[1], '&'), '=', 1) as key,
split_part(regexp_split_to_table((regexp_matches(url, '\?(.*)'))[1], '&'), '=', 2) as value
from ad;
EXPLAIN ANALYZEand some information about table size, index, current time performance, desire time, etc.Slowis a relative term and we need a real value to compare.EXPLAIN ANALYZEwe cant know where is the slow part of the process.FULL SCANon 1.75 M rows? How fast you expect that be?