Skip to content

u/akie

In this archive from Oct 2008 to Oct 2026

3
posts
454
comments
2
media
3.1k
score
1 saved before deletion

Top posts

Top comments

If your calculation is “reasonable”, then you should definitely do this in raw SQL with one big query. Don’t iterate over each row, drag it into PHP and do the calculation there - instead, do the whole thing in one big query. It will be so so fast. You will have a huge sql query in your code though, but otherwise you have your complexity elsewhere.

59 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.