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
!370
Jsalyers muting at sql level
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jsalyers muting at sql level
jsalyers-muting-at-sql-level
into
develop
Overview
9
Commits
92
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
Jason Salyers
requested to merge
jsalyers-muting-at-sql-level
into
develop
4 years ago
Overview
9
Commits
92
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
ab0c0e05
Prev
Next
Show latest version
1 file
+
8
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ab0c0e05
bridge_api.get_account_posts "by comment" optimization.
· ab0c0e05
Bartek Wrona
authored
4 years ago
hive/db/sql_scripts/bridge_get_account_posts_by_comments.sql
+
8
−
3
Options
@@ -48,9 +48,14 @@ BEGIN
hp
.
is_pinned
,
hp
.
curator_payout_value
FROM
hive_posts_view
hp
WHERE
hp
.
author_id
=
__account_id
AND
hp
.
depth
>
0
AND
(
__post_id
=
0
OR
hp
.
id
<
__post_id
)
(
SELECT
hp1
.
id
FROM
hive_posts
hp1
WHERE
hp1
.
author_id
=
__account_id
AND
hp1
.
counter_deleted
=
0
AND
hp1
.
depth
>
0
AND
(
__post_id
=
0
OR
hp1
.
id
<
__post_id
)
ORDER
BY
hp1
.
id
DESC
LIMIT
_limit
)
ds
JOIN
hive_posts_view
hp
ON
ds
.
id
=
hp
.
id
ORDER
BY
hp
.
id
DESC
LIMIT
_limit
;
END
Loading