Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haf_block_explorer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
haf_block_explorer
Commits
d97527c2
Commit
d97527c2
authored
1 month ago
by
Michal Zander
Browse files
Options
Downloads
Patches
Plain Diff
Move index creation after massive sync
parent
d51fb0d4
Branches
Branches containing commit
No related tags found
1 merge request
!294
New block API
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
database/database_schema.sql
+1
-3
1 addition, 3 deletions
database/database_schema.sql
database/hafbe_app_indexes.sql
+2
-0
2 additions, 0 deletions
database/hafbe_app_indexes.sql
with
3 additions
and
3 deletions
database/database_schema.sql
+
1
−
3
View file @
d97527c2
...
...
@@ -64,9 +64,7 @@ BEGIN
(
block_num
INT
NOT
NULL
,
op_type_id
INT
NOT
NULL
,
op_count
INT
NOT
NULL
,
CONSTRAINT
pk_block_operations
PRIMARY
KEY
(
op_type_id
,
block_num
)
op_count
INT
NOT
NULL
);
PERFORM
hive
.
app_register_table
(
'hafbe_app'
,
'block_operations'
,
'hafbe_app'
);
...
...
This diff is collapsed.
Click to expand it.
database/hafbe_app_indexes.sql
+
2
−
0
View file @
d97527c2
...
...
@@ -14,6 +14,8 @@ BEGIN
CREATE
INDEX
IF
NOT
EXISTS
account_proxies_history_timestamp
ON
hafbe_app
.
account_proxies_history
USING
btree
(
timestamp
);
CREATE
INDEX
IF
NOT
EXISTS
account_proxies_history_account_id
ON
hafbe_app
.
account_proxies_history
USING
btree
(
account_id
);
CREATE
INDEX
IF
NOT
EXISTS
current_account_proxies_proxy_id
ON
hafbe_app
.
current_account_proxies
USING
btree
(
proxy_id
);
CREATE
INDEX
IF
NOT
EXISTS
block_operations_block_num
ON
hafbe_app
.
block_operations
USING
btree
(
block_num
);
CREATE
UNIQUE
INDEX
IF
NOT
EXISTS
block_operations_op_type_id_block_num
ON
hafbe_app
.
block_operations
USING
btree
(
op_type_id
,
block_num
);
END
$$
;
...
...
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