None
None
Reported by:
115
need help with "simps" and "simps for"

so yesterday I restored "simps" and "simps for" but made them only count post votes

the reason is because the queries that would include comment votes take way too long when they run on powerusers which causes timeouts that slow down the whole site

here's 2 examples that use my user id


QUERY 1 (for my simps): 25 seconds

explain analyze SELECT commentvotes.user_id AS commentvotes_user_id, count(commentvotes.user_id) AS count_1
        FROM commentvotes JOIN comments ON comments.id = commentvotes.comment_id
        WHERE comments.ghost = false AND comments.is_banned = false AND comments.deleted_utc = 0 AND commentvotes.vote_type = 1 AND comments.author_id = 1 GROUP BY commentvotes.user_id ORDER BY count(commentvotes.user_id) DESC;
                                                                                 QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Sort  (cost=101326.43..101331.71 rows=2111 width=12) (actual time=25292.671..25371.754 rows=1844 loops=1)
   Sort Key: (count(commentvotes.user_id)) DESC
   Sort Method: quicksort  Memory: 135kB
   ->  Finalize GroupAggregate  (cost=100675.05..101209.87 rows=2111 width=12) (actual time=25266.703..25370.338 rows=1844 loops=1)
         Group Key: commentvotes.user_id
         ->  Gather Merge  (cost=100675.05..101167.65 rows=4222 width=12) (actual time=25266.210..25368.234 rows=4089 loops=1)
               Workers Planned: 2
               Workers Launched: 2
               ->  Sort  (cost=99675.02..99680.30 rows=2111 width=12) (actual time=25174.301..25174.732 rows=1363 loops=3)
                     Sort Key: commentvotes.user_id
                     Sort Method: quicksort  Memory: 113kB
                     Worker 0:  Sort Method: quicksort  Memory: 113kB
                     Worker 1:  Sort Method: quicksort  Memory: 111kB
                     ->  Partial HashAggregate  (cost=99537.35..99558.46 rows=2111 width=12) (actual time=25172.482..25173.130 rows=1363 loops=3)
                           Group Key: commentvotes.user_id
                           Batches: 1  Memory Usage: 241kB
                           Worker 0:  Batches: 1  Memory Usage: 241kB
                           Worker 1:  Batches: 1  Memory Usage: 241kB
                           ->  Nested Loop  (cost=119.48..99291.83 rows=49104 width=4) (actual time=70.552..25064.475 rows=25093 loops=3)
                                 ->  Parallel Bitmap Heap Scan on comments  (cost=119.04..12311.25 rows=4943 width=4) (actual time=57.412..246.591 rows=4380 loops=3)
                                       Recheck Cond: (author_id = 1)
                                       Filter: ((NOT ghost) AND (NOT is_banned) AND (deleted_utc = 0))
                                       Rows Removed by Filter: 263
                                       Heap Blocks: exact=3882
                                       ->  Bitmap Index Scan on comments_user_index  (cost=0.00..116.08 rows=12353 width=0) (actual time=36.276..36.277 rows=14518 loops=1)
                                             Index Cond: (author_id = 1)
                                 ->  Index Scan using commentvotes_pkey on commentvotes  (cost=0.44..17.28 rows=32 width=8) (actual time=1.447..5.654 rows=6 loops=13141)
                                       Index Cond: (comment_id = comments.id)
                                       Filter: (vote_type = 1)
                                       Rows Removed by Filter: 0
 Planning Time: 0.764 ms
 JIT:
   Functions: 60
   Options: Inlining false, Optimization false, Expressions true, Deforming true
   Timing: Generation 19.575 ms, Inlining 0.000 ms, Optimization 6.942 ms, Emission 122.562 ms, Total 149.079 ms
 Execution Time: 25453.921 ms
(36 rows)






QUERY 2 (for the ppl i simp for): 13 seconds

explain analyze SELECT comments.author_id AS comments_author_id, count(comments.author_id) AS count_1 
        FROM comments JOIN commentvotes ON comments.id = commentvotes.comment_id 
        WHERE comments.ghost = false AND comments.is_banned = false AND comments.deleted_utc = 0 AND commentvotes.vote_type = 1 AND commentvotes.user_id = 1 GROUP BY comments.author_id ORDER BY count(comments.author_id) DESC;

                                                                                         QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Sort  (cost=234059.08..234064.81 rows=2293 width=12) (actual time=13511.566..13632.448 rows=3074 loops=1)
   Sort Key: (count(comments.author_id)) DESC
   Sort Method: quicksort  Memory: 241kB
   ->  Finalize GroupAggregate  (cost=233350.16..233931.10 rows=2293 width=12) (actual time=13502.703..13630.725 rows=3074 loops=1)
         Group Key: comments.author_id
         ->  Gather Merge  (cost=233350.16..233885.24 rows=4586 width=12) (actual time=13502.611..13628.135 rows=6597 loops=1)
               Workers Planned: 2
               Workers Launched: 2
               ->  Sort  (cost=232350.14..232355.87 rows=2293 width=12) (actual time=13404.805..13405.287 rows=2199 loops=3)
                     Sort Key: comments.author_id
                     Sort Method: quicksort  Memory: 203kB
                     Worker 0:  Sort Method: quicksort  Memory: 199kB
                     Worker 1:  Sort Method: quicksort  Memory: 197kB
                     ->  Partial HashAggregate  (cost=232199.23..232222.16 rows=2293 width=12) (actual time=13398.724..13399.556 rows=2199 loops=3)
                           Group Key: comments.author_id
                           Batches: 1  Memory Usage: 369kB
                           Worker 0:  Batches: 1  Memory Usage: 369kB
                           Worker 1:  Batches: 1  Memory Usage: 369kB
                           ->  Nested Loop  (cost=0.87..231821.34 rows=75577 width=4) (actual time=81.541..13275.534 rows=52615 loops=3)
                                 ->  Parallel Index Scan using cvote_user_index on commentvotes  (cost=0.44..129890.24 rows=78687 width=4) (actual time=64.216..9154.821 rows=55000 loops=3)
                                       Index Cond: (user_id = 1)
                                       Filter: (vote_type = 1)
                                       Rows Removed by Filter: 90
                                 ->  Index Scan using comments_pkey on comments  (cost=0.43..1.30 rows=1 width=8) (actual time=0.072..0.072 rows=1 loops=165000)
                                       Index Cond: (id = commentvotes.comment_id)
                                       Filter: ((NOT ghost) AND (NOT is_banned) AND (deleted_utc = 0))
                                       Rows Removed by Filter: 0
 Planning Time: 0.721 ms
 JIT:
   Functions: 60
   Options: Inlining false, Optimization false, Expressions true, Deforming true
   Timing: Generation 8.837 ms, Inlining 0.000 ms, Optimization 11.450 ms, Emission 167.933 ms, Total 188.220 ms
 Execution Time: 13635.714 ms
(33 rows)

so i need help, how do I make them run faster or what indexes do I make, i didnt actually read the explain analyze outputs I posted here cuz im too lazy and need to take a shower rn so the answer might be pretty obvious (correct answer gets 50k marseybuckerinos and a code contributer badge)

None
9
:marseyitsover: for intelcels
None

:marseylaugh:

https://old.reddit.com/r/technology/comments/10mytpp/san_francisco_robotaxis_are_causing_false_911/

None

:marseysnoo:

https://old.reddit.com/r/technology/comments/10mtkq9/report_truth_social_ads_dominated_by_fake/

https://old.reddit.com/r/nottheonion/comments/10muacs/report_truth_social_ads_dominated_by_fake/

https://old.reddit.com/r/inthemorning/comments/10n2xeg/what_kind_of_advertisers_would_flock_to_a_social/

None

No joke is too obvious

Orange Site:

https://news.ycombinator.com/item?id=34555327

None
None
8
:marseyrussiaglow: How the USSR almost invented the internet :marseyrevolution:
None

Can confirm, /h/slackernews was created to troll Hacker News and /g/ effectively.

None

I can't bypass the paywall if anyone can pls post a mirror btw.

None

![](/images/1674870264464682.webp)

![](/images/16748702638720176.webp)

![](/images/16748702632369184.webp)

![](/images/16748702626414306.webp)

None
65
Codecel appreciation thread.

:#marseyautismpat:

Despite all the r-sluration in the world, rdrama.net is a really well designed website.

None

Good ol' Mog attacking random users.

None
None
None

:marseysnoo:

https://old.reddit.com/r/gadgets/comments/10lotnq/smartphone_shipments_plunge_to_a_low_not_seen/

https://old.reddit.com/r/wallstreetbets/comments/10m1ed8/smartphone_shipments_plunge_to_a_low_not_seen/

Orange Site:

https://news.ycombinator.com/item?id=34536151

None
58
Scott Alexander drops a TON of N words in a row

https://astralcodexten.substack.com/p/you-dont-want-a-purely-biological

None

Basically teamblind.com threads are great drama if someone with an account makes screenshots, but shit if you don't have anybody with an account who can make screenshots, so I got a couple of the admins to agree to pay a bonus to people who post blind screenshots in blind threads.

@Aevann please don't ban me for posting groomercord screenshots :marseyklennyheart:

/h/slackernews mods it would be nice if you could sticky this thread.

EDIT: Oops I didn't post this in /h/slackernews lol. Jannies pls move :marseyklennyheart:

None
Reported by:

https://www.teamblind.com/post/Reddit-is-doing-layoffs-SAkLHfEz

IN IN IN

I can't register a full account because I don't have a disposable work email from a massive company.

/images/16747336081050234.webp

Someone even tried to warn these cute twinks it was coming two months ago lol

https://www.teamblind.com/post/reddit-layoffs-ZziYJA8p

/images/16747336889991908.webp

HR or damage control team at work but also spitting facts like people who work at reddit are inherently lazy (except for the CEO of course)

/images/16747338895562499.webp

SPEZ IS PERSONALLY FIXING THE PROBLEM BTW

/images/1674733998899109.webp

MORE COPE

/images/16747341100813496.webp

Once the initial shock wore off everyone started remembering what a shit platform reddit has become lol

/images/1674734294567835.webp /images/167473436406766.webp /images/16747343777264369.webp

Just a little more stuff I dug up. Unfortunately I don't think Kethryvis got the giga-mop, but she did like a reddit :marseytrain: admins post on twitter which implies some internal drama:

https://x.com/CKWang/status/1618348168063905792?s=20

You'd think Kethryvis and her actual thesis on Internet Drama damage control (https://www2.sjsu.edu/anthropology/docs/projectfolder/Moellenberndt_Christine_thesis.pdf) would be able to figure out how to deescalate all of this, but come think of it, we should really thank her sometime for making http://rdrama.net possible.

None

i cant find a btn to do that

None

Guess the founder didn't really want the Unauthorized practice of law charge, he just wanted attention :marseyattentionseeker:. Score another one for the Saul Goodmans of the world.

Relevant orange site: https://news.ycombinator.com/item?id=34529340

None

Found on the farms, potential lolcow

None
25
Yandex git sources leaked

Magnet provided in link

Orange Site:

https://news.ycombinator.com/item?id=34525936

:marsey4chan:

https://archived.moe/g/thread/91124898/yandex-leak

https://archived.moe/g/thread/91124898/yandex-leak

:marseysnoo:

https://old.reddit.com/r/cybersecurity/comments/10lgm15/source_code_of_russian_it_giant_yandex_just_been/

https://old.reddit.com/r/programming/comments/10lf75q/apparently_40gb_of_yandex_git_repos_have_been/

https://old.reddit.com/r/real_China_irl/comments/10li1c9/yandex%E4%BF%84%E7%BD%97%E6%96%AF%E6%9C%AC%E5%9C%9F%E6%9C%80%E5%A4%A7%E7%9A%84%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E5%85%AC%E5%8F%B8%E7%9A%84%E6%BA%90%E4%BB%A3%E7%A0%81%E8%A2%AB%E6%B3%84%E9%9C%B2%E5%8C%85%E6%8B%AC%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E5%9C%B0%E5%9B%BE%E5%8A%9F%E8%83%BD%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E4%B9%8B%E7%B1%BB%E7%9A%84%E6%BA%90%E4%BB%A3%E7%A0%81%E8%A2%AB%E6%B3%84%E9%9C%B2/

:marseybluecheck:

https://x.com/dbalakov/status/1618383988351201282

None
Reported by:
223
:marseylaugh::marseylaugh::marseylaugh: Plebbit is now laying off employees

:marseysnoo:

https://old.reddit.com/r/technology/comments/10l2o1a/reddit_layoffs_2023_what_to_know_about_the_latest/

None

Orange Site:

https://news.ycombinator.com/item?id=34519824

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.