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
Merge requests
!863
Draft: refactor follows and update_nofications indexing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: refactor follows and update_nofications indexing
267-update-notification-cache
into
develop
Overview
0
Commits
90
Pipelines
0
Changes
1
Open
Dan Notestein
requested to merge
267-update-notification-cache
into
develop
2 weeks ago
Overview
0
Commits
90
Pipelines
0
Changes
1
Expand
Based on
!819
Edited
1 week ago
by
Krzysztof Leśniak
0
0
Merge request reports
Viewing commit
977447e7
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
977447e7
Don't use hive_rowid in hivemind_app.hive_raw_notifications_as_view
· 977447e7
Krzysztof Leśniak
authored
2 months ago
hive/db/sql_scripts/notifications_view.sql
+
1
−
1
Options
@@ -118,7 +118,7 @@ CREATE OR REPLACE VIEW hivemind_app.hive_raw_notifications_as_view
WHERE
m
.
follower
=
hpv
.
parent_author_id
AND
m
.
following
=
hpv
.
author_id
)
UNION
ALL
SELECT
f
.
block_num
,
hivemind_app
.
notification_id
(
f
.
block_num
,
15
,
f
.
hive_rowid
::
integer
)
AS
id
,
hivemind_app
.
notification_id
(
f
.
block_num
,
15
,
(
row_number
()
OVER
())::
INTEGER
)
AS
id
,
0
AS
post_id
,
15
AS
type_id
,
(
select
hb
.
created_at
from
hivemind_app
.
blocks_view
hb
where
hb
.
num
=
(
f
.
block_num
-
1
))
as
created_at
,
-- use time of previous block to match head_block_time behavior at given block
Loading