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
78184caf
Commit
78184caf
authored
8 months ago
by
julian
Browse files
Options
Downloads
Patches
Plain Diff
added experiment without index, minor adjustments
parent
560985b9
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
compose.yml
+1
-1
1 addition, 1 deletion
compose.yml
insert_tests.py
+8
-0
8 additions, 0 deletions
insert_tests.py
postgres/queries.sql
+6
-10
6 additions, 10 deletions
postgres/queries.sql
postgresql.conf
+7
-7
7 additions, 7 deletions
postgresql.conf
with
22 additions
and
18 deletions
compose.yml
+
1
−
1
View file @
78184caf
...
...
@@ -36,8 +36,8 @@ services:
postgres
:
build
:
postgres
command
:
-c config_file=/postgres_conf
shm_size
:
5gb
hostname
:
$PGHOST
shm_size
:
10gb
environment
:
-
PGUSER
-
POSTGRES_USER=$PGUSER
...
...
This diff is collapsed.
Click to expand it.
insert_tests.py
+
8
−
0
View file @
78184caf
...
...
@@ -169,6 +169,14 @@ if __name__ == "__main__":
),
"
env
"
:
env_default
,
},
{
"
name
"
:
"
experiment_no_index
"
,
"
compose_files
"
:
(
"
compose.yml
"
,
"
compose.edge-id.yml
"
,
),
"
env
"
:
env_default
,
},
)
for
experiment
in
experiments
:
run_experiment
(
**
experiment
)
This diff is collapsed.
Click to expand it.
postgres/queries.sql
+
6
−
10
View file @
78184caf
...
...
@@ -95,15 +95,11 @@ PREPARE two_hop (INTEGER) AS
),
hop1
AS
(
SELECT
destination
AS
vertex
FROM
double_edge
WHERE
source
=
$
1
WHERE
source
=
$
1
AND
destination
<>
$
1
)
SELECT
vertex
FROM
(
SELECT
vertex
FROM
hop1
UNION
SELECT
destination
FROM
double_edge
JOIN
hop1
ON
vertex
=
source
)
WHERE
vertex
<>
$
1
;
JOIN
hop1
ON
vertex
=
source
AND
destination
<>
$
1
;
This diff is collapsed.
Click to expand it.
postgresql.conf
+
7
−
7
View file @
78184caf
...
...
@@ -62,7 +62,7 @@ listen_addresses = '*'
# defaults to 'localhost'; use '*' for all
# (change requires restart)
#port = 5432 # (change requires restart)
max_connections
=
100
# (change requires restart)
max_connections
=
6
# (change requires restart)
#reserved_connections = 0 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
...
...
@@ -127,7 +127,7 @@ max_connections = 100 # (change requires restart)
# - Memory -
shared_buffers
=
10
GB
# min 128kB
shared_buffers
=
8
GB
# min 128kB
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
...
...
@@ -140,7 +140,7 @@ shared_buffers = 10GB # min 128kB
# you actively intend to use prepared transactions.
work_mem
=
256
MB
# min 64kB
#hash_mem_multiplier = 2.0 # 1-1000.0 multiplier on hash table work_mem
maintenance_work_mem
=
1
GB
# min 1MB
maintenance_work_mem
=
2
GB
# min 1MB
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
#logical_decoding_work_mem = 64MB # min 64kB
#max_stack_depth = 2MB # min 100kB
...
...
@@ -192,7 +192,7 @@ dynamic_shared_memory_type = posix # the default is usually the first option
#backend_flush_after = 0 # measured in pages, 0 disables
#effective_io_concurrency = 1 # 1-1000; 0 disables prefetching
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
#
max_worker_processes =
8
# (change requires restart)
max_worker_processes
=
6
# (change requires restart)
#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
#max_parallel_workers = 8 # number of max_worker_processes that
...
...
@@ -406,7 +406,7 @@ random_page_cost = 1.1 # same scale as above
#parallel_tuple_cost = 0.1 # same scale as above
#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
effective_cache_size
=
1
0
GB
effective_cache_size
=
1
2
GB
#jit_above_cost = 100000 # perform JIT compilation if available
# and query more expensive than this;
...
...
@@ -429,7 +429,7 @@ effective_cache_size = 10GB
# - Other Planner Options -
default_statistics_target
=
3
00
# range 1-10000
default_statistics_target
=
10
00
# range 1-10000
#constraint_exclusion = partition # on, off, or partition
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
#from_collapse_limit = 8
...
...
@@ -597,7 +597,7 @@ default_statistics_target = 300 # range 1-10000
# -1 means print in full, 0 disables
#log_statement = 'none' # none, ddl, mod, all
#log_replication_commands = off
#
log_temp_files =
-1
# log temporary files equal or larger
log_temp_files
=
0
# log temporary files equal or larger
# than the specified size in kilobytes;
# -1 disables, 0 logs all temp files
log_timezone
=
'Etc/UTC'
...
...
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