Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma_code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven-Ove Hänsel
ma_code
Commits
c489d618
Commit
c489d618
authored
8 months ago
by
julian
Browse files
Options
Downloads
Patches
Plain Diff
corrected two_hop because of incorrect assumptions based on cadets dataset, change some pg configs
parent
36a259bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
postgresql.conf
+2
-2
2 additions, 2 deletions
postgresql.conf
query/queries.sql
+10
-7
10 additions, 7 deletions
query/queries.sql
with
12 additions
and
9 deletions
postgresql.conf
+
2
−
2
View file @
c489d618
...
...
@@ -398,7 +398,7 @@ min_wal_size = 80MB
# - Planner Cost Constants -
#seq_page_cost = 1.0 # measured on an arbitrary scale
#
random_page_cost =
4.0
# same scale as above
random_page_cost
=
1
.
1
# same scale as above
#cpu_tuple_cost = 0.01 # same scale as above
#cpu_index_tuple_cost = 0.005 # same scale as above
#cpu_operator_cost = 0.0025 # same scale as above
...
...
@@ -406,7 +406,7 @@ min_wal_size = 80MB
#parallel_tuple_cost = 0.1 # same scale as above
#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
#
effective_cache_size =
4
GB
effective_cache_size
=
10
GB
#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
...
...
This diff is collapsed.
Click to expand it.
query/queries.sql
+
10
−
7
View file @
c489d618
...
...
@@ -87,7 +87,7 @@ PREPARE two_hop_old (INTEGER) AS
)
WHERE
vertex
<>
$
1
;
PREPARE
two_hop
_new
(
INTEGER
)
AS
PREPARE
two_hop
(
INTEGER
)
AS
WITH
double_edge
AS
NOT
MATERIALIZED
(
SELECT
source
,
destination
FROM
edge
UNION
ALL
...
...
@@ -97,10 +97,13 @@ PREPARE two_hop_new (INTEGER) AS
FROM
double_edge
WHERE
source
=
$
1
)
SELECT
vertex
FROM
(
SELECT
vertex
FROM
hop1
UNION
ALL
SELECT
DISTINCT
destination
UNION
SELECT
destination
FROM
double_edge
JOIN
hop1
ON
vertex
=
source
WHERE
destination
<>
$
1
;
)
WHERE
vertex
<>
$
1
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment