Skip to content
GitLab
Explore
Sign in
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
Commits
ee243163
Commit
ee243163
authored
4 years ago
by
Marcin
Browse files
Options
Downloads
Patches
Plain Diff
speed up for bridge_get_ranked_post_by_created_for_tag
parent
917c7f73
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!307
speed up for bridge_get_ranked_post_by_created_for_tag
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql
+1
-1
1 addition, 1 deletion
hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql
with
1 addition
and
1 deletion
hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql
+
1
−
1
View file @
ee243163
...
@@ -55,7 +55,7 @@ BEGIN
...
@@ -55,7 +55,7 @@ BEGIN
JOIN
hive_posts
hp1
ON
hp1
.
id
=
hpt
.
post_id
JOIN
hive_posts
hp1
ON
hp1
.
id
=
hpt
.
post_id
JOIN
hive_accounts_view
ha
ON
hp1
.
author_id
=
ha
.
id
JOIN
hive_accounts_view
ha
ON
hp1
.
author_id
=
ha
.
id
WHERE
hpt
.
tag_id
=
__hive_tag
AND
hp1
.
counter_deleted
=
0
AND
hp1
.
depth
=
0
AND
NOT
ha
.
is_grayed
AND
(
__post_id
=
0
OR
hp1
.
id
<
__post_id
)
WHERE
hpt
.
tag_id
=
__hive_tag
AND
hp1
.
counter_deleted
=
0
AND
hp1
.
depth
=
0
AND
NOT
ha
.
is_grayed
AND
(
__post_id
=
0
OR
hp1
.
id
<
__post_id
)
ORDER
BY
hp1
.
id
DESC
ORDER
BY
hp1
.
id
+
0
DESC
LIMIT
_limit
LIMIT
_limit
)
as
created
)
as
created
JOIN
hive_posts_view
hp
ON
hp
.
id
=
created
.
id
JOIN
hive_posts_view
hp
ON
hp
.
id
=
created
.
id
...
...
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