## Maps parts of the possible known queries with a fixed and shorter query label.
constQueriesToMetricMap*={
"contentTopic IN":"content_topic",
"SELECT version()":"select_version",
"WITH min_timestamp":"messages_lookup",
"SELECT messageHash FROM messages WHERE pubsubTopic = ? AND timestamp >= ? AND timestamp <= ? ORDER BY timestamp DESC, messageHash DESC LIMIT ?":
"msg_hash_no_ctopic",
"AS partition_name":"get_partitions_list",
"SELECT COUNT(1) FROM messages":"count_msgs",
"SELECT messageHash FROM messages WHERE (timestamp, messageHash) < (?,?) AND pubsubTopic = ? AND timestamp >= ? AND timestamp <= ? ORDER BY timestamp DESC, messageHash DESC LIMIT ?":