Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
86a1962b
Commit
86a1962b
authored
1 month ago
by
Dan Notestein
Browse files
Options
Downloads
Patches
Plain Diff
re-instate overrides on two tables where it seems to make a difference, analyze more after
parent
a76f4e8d
No related branches found
No related tags found
1 merge request
!842
Remove hive_post_data img_url, instead extracting it from json field
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/db/schema.py
+5
-5
5 additions, 5 deletions
hive/db/schema.py
with
5 additions
and
5 deletions
hive/db/schema.py
+
5
−
5
View file @
86a1962b
...
...
@@ -462,7 +462,7 @@ def setup(db, admin_db):
build_metadata
().
create_all
(
db
.
engine
())
# tune auto vacuum/analyze
# Disable special autovacuum at least for massive sync
reset_autovac(db)
reset_autovac
(
db
)
# sets FILLFACTOR:
set_fillfactor
(
db
)
...
...
@@ -773,12 +773,12 @@ def reset_autovac(db):
per-table, in the format (autovacuum_threshold, autoanalyze_threshold).
"""
autovac_config
=
{
# vacuum analyze
'
hive_accounts
'
:
(
50000
,
100000
),
#
'hive_accounts': (50000, 100000),
'
hive_posts
'
:
(
2500
,
10000
),
'
hive_post_tags
'
:
(
5000
,
10000
),
'
hive_follows
'
:
(
5000
,
5000
),
'
hive_feed_cache
'
:
(
5000
,
5000
),
'
hive_reblogs
'
:
(
5000
,
5000
),
#
'hive_follows': (5000, 5000),
#
'hive_feed_cache': (5000, 5000),
#
'hive_reblogs': (5000, 5000),
}
for
table
,
(
n_vacuum
,
n_analyze
)
in
autovac_config
.
items
():
...
...
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