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
!373
Something went wrong on our end
bridge_api.get_account_posts "by comment" optimization.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
bridge_api.get_account_posts "by comment" optimization.
bw_bridge_get_account_posts_by_comments_opt
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Bartek Wrona
requested to merge
bw_bridge_get_account_posts_by_comments_opt
into
develop
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
685fd627
Show latest version
1 file
+
8
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
685fd627
bridge_api.get_account_posts "by comment" optimization.
· 685fd627
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