feat: initial commit
This commit is contained in:
commit
e214116e40
253 changed files with 17406 additions and 0 deletions
12
queries/views/feeds/robots.psql
Normal file
12
queries/views/feeds/robots.psql
Normal file
|
@ -0,0 +1,12 @@
|
|||
CREATE OR REPLACE VIEW optimized_robots AS
|
||||
SELECT
|
||||
r.path,
|
||||
array_agg(ua.user_agent ORDER BY ua.user_agent) AS user_agents
|
||||
FROM
|
||||
robots AS r
|
||||
JOIN
|
||||
robots_user_agents AS rua ON r.id = rua.robots_id
|
||||
JOIN
|
||||
user_agents AS ua ON rua.user_agents_id = ua.id
|
||||
GROUP BY
|
||||
r.path;
|
Loading…
Add table
Add a link
Reference in a new issue