
Back-End Rails Engineer @SkroutzDevs
Athens, Greece
Joined October 2013
- Tweets183
- Following498
- Followers242
- Likes425
Mpampis Kostas retweeted
How to be a top 10% Ruby perf team:
1. SLO-based queues
2. RMP in all environments
3. RUM in browser
4. Autoscale web and worker
5. Instrument request queue time
6. Automated alerts/SLOs in Terraform
7. Prosopite/strictloading in tests
8. Latest Ruby w jemalloc
9. Turbo
Mpampis Kostas retweeted
Tired: eager loading suggestions
Wired: prosopite, raise exceptions in all environments except prod if you N+1
Mpampis Kostas retweeted
These gems are fine, but IME 90% of N+1s in apps cannot be fixed simply by adding a preload/eager_load in the right place. This is why I prefer "fail hard"/andon cord approaches like prosopite, which doesn't propose that it always has the solution
Mpampis Kostas retweeted
The CGRP Slack's favorite Ruby performance gems:
github.com/pganalyze/pg_quer…
github.com/ankane/pghero
github.com/nevir/Bumbler
github.com/plentz/lol_dba
github.com/charkost/prosopit…
Buy any of my books/courses to get access to my Slack. It's often my reader's favorite part!
Mpampis Kostas retweeted
Prosopite continues to impress; github.com/charkost/prosopit…
The functionality of running it in tests is quite good.
Mpampis Kostas retweeted
Ruby 3.3.0 YJIT improvements 🎉
I like the idea of starting YJIT only after your application fully booted.
Also exited to see a pure-Ruby JIT RJIT.
Mpampis Kostas retweeted
I had an issue with bullet talking way, way too much overhead. I’m talking over 90% of the time spend for bullet. I replaced it with prosopite. It does the same and no visible overhead. My crazy went from 15 minutes to 1 minute (it does a lot I know)
Mpampis Kostas retweeted
Replying to @charkost
Thank you for the feedback.
I actually have a gem that uses Prosopite to automatically detect n+1s and report them on GitHub pull requests:
github.com/bodacious/jiminy
The intention for this article, though, was to cover the basic principles. So tools were out of scope 🤓
Mpampis Kostas retweeted
That heart-sinking feeling when you see a huge performance regression but it wasn't tied to a code deploy 🙃
Mpampis Kostas retweeted
we've been using Prosopite at Gusto for a minute (implemented by others, not by me) and it's a significant improvement on Bullet. Check it out: google.com/search?q=prosopit…
Mpampis Kostas retweeted
In OSS, there are no sprints, stand-ups, retrospectives, 1:1s, 360s, quarters, velocities, estimations, deadlines, project managers, "how is this going", year goals, ..., could go on and on.
Yet it ships non-stop and runs the world.
Mpampis Kostas retweeted
Here's one alternative: github.com/charkost/prosopit…
Mpampis Kostas retweeted
How we upgraded to #Rails 6.1 on a moving codebase.
engineering.skroutz.gr/blog/…
Mpampis Kostas retweeted
Ever wondered how bash completions actually work, or wanted to implement your own? Then Lazarus Lazaridis (@lazaru_s) has got you covered with this excellent article. Great work 👍!
iridakos.com/programming/201…
Mpampis Kostas retweeted
Δωρεάν μεταφορικά; Κι όμως γίνεται! Με το Skroutz Plus. Τη νέα συνδρομητική υπηρεσία που σου δίνει δωρεάν αποστολές σε όλη την Ελλάδα, για αγορές μέσω Skroutz, με μόνο 17€ τον χρόνο. 🙌
Ξεκίνα εδώ: skroutz.gr/plus
Mpampis Kostas retweeted
Do you feel lost?
Try creating. Could be code, companies, art, people.
Creation brings meaning because it's what we were made to do.
Mpampis Kostas retweeted
💎 Rails tip💎
You don't always need to use raw SQL when trying to do something that ActiveRecord doesn't support. You can use Arel, which can be more structured, readable, and possibly safer.
↓ Basic Example ↓
#ruby #rails #rubyonrails
![search = "%part%" likes_count = 10 # Raw SQL to find posts by user name and more than 10 likes Post.joins(:user).where( "users.name LIKE ? AND posts.likes > ?", search, likes_count ).count # Arel equivalent name_match = User.arel_table[:name].matches(search) popular = Post.arel_table[:likes].gt(likes_count) posts = Post.joins(:user).where(name_match.and(popular))](https://pbs.twimg.com/media/E1b7j_mUcAEBf5w.jpg?name=small&format=webp)
ALT search = "%part%" likes_count = 10 # Raw SQL to find posts by user name and more than 10 likes Post.joins(:user).where( "users.name LIKE ? AND posts.likes > ?", search, likes_count ).count # Arel equivalent name_match = User.arel_table[:name].matches(search) popular = Post.arel_table[:likes].gt(likes_count) posts = Post.joins(:user).where(name_match.and(popular))
Mpampis Kostas retweeted
I've spoken to 2,000+ people about remote work in the last 12 months
A few predictions of what is likely to emerge before 2030
[ a thread ] 💻🏠🌍
Mpampis Kostas retweeted
♦️Ruby has a handy email regex to check if an email is valid or not. It returns nil if it doesn't match the regex. For those interested, the Regex can be found in the source here: github.com/ruby/uri/blob/mas… #ruby #rubyonrails

















