|
25 | 25 | Statements: |
26 | 26 | - SELECT repository_id,contributor_count FROM (SELECT repository_id, COUNT(DISTINCT commit_author_email) AS contributor_count FROM commits GROUP BY repository_id) AS q ORDER BY contributor_count DESC LIMIT 10 |
27 | 27 | - |
28 | | - ID: 'query5' |
| 28 | + ID: 'query6' |
29 | 29 | Name: 'Create pilosa index on language UDF' |
30 | 30 | Statements: |
31 | 31 | - CREATE INDEX language_idx ON files USING pilosa (language(file_path, blob_content)) WITH (async = false) |
32 | 32 | - DROP INDEX language_idx ON files |
33 | 33 | - |
34 | | - ID: 'query6' |
35 | | - Name: 'Create pilosalib index on language UDF' |
36 | | - Statements: |
37 | | - - CREATE INDEX language_idx ON files USING pilosalib (language(file_path, blob_content)) WITH (async = false) |
38 | | - - DROP INDEX language_idx ON files |
39 | | -- |
40 | | - ID: 'query7' |
| 34 | + ID: 'query8' |
41 | 35 | Name: 'Query by language using the pilosa index' |
42 | 36 | Statements: |
43 | 37 | - CREATE INDEX language_idx ON files USING pilosa (language(file_path, blob_content)) WITH (async = false) |
44 | 38 | - SELECT file_path FROM files WHERE language(file_path, blob_content) = 'Go' |
45 | 39 | - DROP INDEX language_idx ON files |
46 | | -- |
47 | | - ID: 'query8' |
48 | | - Name: 'Query by language using the pilosalib index' |
49 | | - Statements: |
50 | | - - CREATE INDEX language_idx ON files USING pilosalib (language(file_path, blob_content)) WITH (async = false) |
51 | | - - SELECT file_path FROM files WHERE language(file_path, blob_content) = 'Go' |
52 | | - - DROP INDEX language_idx ON files |
53 | 40 | - |
54 | 41 | ID: 'query9' |
55 | 42 | Name: 'Query all files from HEAD' |
56 | 43 | Statements: |
57 | 44 | - SELECT cf.file_path, f.blob_content FROM ref_commits r NATURAL JOIN commit_files cf NATURAL JOIN files f WHERE r.ref_name = 'HEAD' AND r.history_index = 0 |
58 | 45 | - |
59 | | - ID: 'query10' |
| 46 | + ID: 'query11' |
60 | 47 | Name: 'Get all LICENSE blobs using pilosa index' |
61 | 48 | Statements: |
62 | 49 | - CREATE INDEX file_path_idx ON files USING pilosa (file_path) WITH (async = false) |
63 | 50 | - SELECT blob_content FROM files WHERE file_path = 'LICENSE' |
64 | 51 | - DROP INDEX file_path_idx ON files |
65 | | -- |
66 | | - ID: 'query11' |
67 | | - Name: 'Get all LICENSE blobs using pilosalib index' |
68 | | - Statements: |
69 | | - - CREATE INDEX file_path_idx ON files USING pilosalib (file_path) WITH (async = false) |
70 | | - - SELECT blob_content FROM files WHERE file_path = 'LICENSE' |
71 | | - - DROP INDEX file_path_idx ON files |
72 | 52 | - |
73 | 53 | ID: 'query12' |
74 | 54 | Name: '10 top repos by file count in HEAD' |
|
85 | 65 | Statements: |
86 | 66 | - SELECT * FROM (SELECT commit_author_email as author,count(*) as num_commits FROM commits GROUP BY commit_author_email) t ORDER BY num_commits DESC |
87 | 67 | - |
88 | | - ID: 'query15' |
| 68 | + ID: 'query16' |
89 | 69 | Name: 'Union operation with pilosa index' |
90 | 70 | Statements: |
91 | 71 | - CREATE INDEX file_path_idx ON files USING pilosa (file_path) WITH (async = false) |
92 | 72 | - SELECT blob_content FROM files WHERE file_path = 'LICENSE' OR file_path = 'README.md' |
93 | 73 | - DROP INDEX file_path_idx ON files |
94 | | -- |
95 | | - ID: 'query16' |
96 | | - Name: 'Union operation with pilosalib index' |
97 | | - Statements: |
98 | | - - CREATE INDEX file_path_idx ON files USING pilosalib (file_path) WITH (async = false) |
99 | | - - SELECT blob_content FROM files WHERE file_path = 'LICENSE' OR file_path = 'README.md' |
100 | | - - DROP INDEX file_path_idx ON files |
101 | 74 | - |
102 | 75 | ID: 'query17' |
103 | 76 | Name: 'Count all commits with NOT operation' |
104 | 77 | Statements: |
105 | 78 | - SELECT COUNT(*) FROM commits WHERE NOT(commit_author_email = 'non existing email address'); |
106 | 79 | - |
107 | 80 | ID: 'query18' |
108 | | - Name: 'Count all commits with NOT operation and pilosalib index' |
| 81 | + Name: 'Count all commits with NOT operation and pilosa index' |
109 | 82 | Statements: |
110 | | - - CREATE INDEX email_idx ON commits USING pilosalib (commit_author_email) WITH (async = false) |
| 83 | + - CREATE INDEX email_idx ON commits USING pilosa (commit_author_email) WITH (async = false) |
111 | 84 | - SELECT COUNT(*) FROM commits WHERE NOT(commit_author_email = 'non existing email address') |
112 | 85 | - DROP INDEX email_idx ON commits |
0 commit comments