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
2
Open
Dan Notestein
requested to merge
267-update-notification-cache
into
develop
2 weeks ago
Overview
0
Commits
90
Pipelines
0
Changes
2
Expand
Based on
!819
Edited
1 week ago
by
Krzysztof Leśniak
0
0
Merge request reports
Viewing commit
1d1c6898
Prev
Next
Show latest version
2 files
+
47
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
1d1c6898
Fill subscriptions notifications from the indexer
· 1d1c6898
Krzysztof Leśniak
authored
1 week ago
hive/db/sql_scripts/notifications_view.sql
+
0
−
13
Options
@@ -94,19 +94,6 @@ CREATE OR REPLACE VIEW hivemind_app.hive_raw_notifications_as_view
notifs
.
payload
,
harv
.
score
FROM
(
SELECT
hs
.
block_num
,
0
AS
post_id
,
11
AS
type_id
,
hs
.
created_at
,
hs
.
account_id
AS
src
,
hs
.
community_id
AS
dst
,
0
as
dst_post_id
,
hc
.
name
AS
community
,
hc
.
title
AS
community_title
,
''
::
character
varying
AS
payload
FROM
hivemind_app
.
hive_subscriptions
hs
-- subscriptions
JOIN
hivemind_app
.
hive_communities
hc
ON
hs
.
community_id
=
hc
.
id
UNION
ALL
SELECT
hm
.
block_num
,
hm
.
post_id
,
16
AS
type_id
,
Loading