News for hackers. Stuff that matters.

mscccc

Re:Cloudflare and PlanetScale launch integration on Thursday September 25, 2025 @09:34AM (#45372462)
I'm one of the engineers on the project, it was great working with the Cloudflare team. Here to answer any questions if you have them.
Hey, I'm just trying to help here. I don't think anyone wants to be feeling comatose after a meal. Reduce the sugar and you'll feel good!
> Postprandial somnolence, commonly known as “food coma”, is a normal state of drowsiness or lethargy following a meal. It occurs when you consume foods with a high glycaemic index (GI) - https://www.healthhub.sg/live-healthy/your-medical-questions...

"Food coma" is from carbs/sugar. :)

Edit: to satisfy my friendly HN editors. :)

Re:How does Sidekiq really work? on Monday February 05, 2024 @08:52AM (#39261183)
We chose Rails + Sidekiq for building PlanetScale's REST API + background workers. Project started 3 years ago. We are still very happy with the decision and wouldn't change it.

> Why?

To build fast. Our team knew Ruby well. Many of us worked at GitHub and trusted we could solve the problems ahead of us with it.

> Do you have trouble hiring?

No issues at all.

Re:Pegasus Mail on Thursday August 03, 2023 @12:45PM (#36988283)
I love how the homepage loads in 24ms. Now this is the ideal website.
Re:D1: We turned it up to 11 on Friday May 19, 2023 @11:04AM (#36002812)
I've been using workers on & off since it launched. Just tried it again recently and the local dev experience with wrangler is excellent now.
Re:Show HN: A 15 min daily stretch routine for desk workers on Thursday April 20, 2023 @01:14PM (#35643104)
The author is Kelly Starrett, a legend in the physical therapy/movement world. I've read a lot of his work.

I don't think his message is that stretching "does nothing". It's more that, research has shown that combining stretching with strength (using the range of motion) is the way to create lasting change.

Re:Building GitHub with Ruby on Rails on Monday April 10, 2023 @10:19PM (#35519944)
Yes that’s correct.

I was saying it came after, meaning GitHub could not have used it since it didn’t exist. :)

Re:How does database sharding work? on Monday April 10, 2023 @10:10AM (#35512497)
Hey, I work for PlanetScale.

Definitely not normal. It’s hard to know why you’re seeing slow queries without more information.

The most common causes are either: missing indexes or network latency between the app and database (are they in the same region?).

We don’t have cold starts, but it is possible for queries to get faster once data is moved into memory. 3-4s is very slow though, I suspect it’s doing a full table scan and an index will solve it.

If you check Insights you can get more info, would also help to run an explain on the query (https://planetscale.com/courses/mysql-for-developers/queries...) to see what’s happening.

Also, if you email support, they’ll help debug it for you. Hope that helps!

Re:Building GitHub with Ruby on Rails on Friday April 07, 2023 @06:44PM (#35488032)
Even with my kindest interpretation, I cannot find how this comment adds anything to the conversation. It’s also incorrect. Hotwire was released after GitHub’s internal UI framework (which is quite impressive!) was created.

Attributing some UI bugs with their choice of framework is a massive oversimplification of the problem.

Re:Google Bard enters open beta on Tuesday March 21, 2023 @12:15PM (#35248305)
To sign up with a different google account, you can use this: https://bard.google.com/u/1/ (increment number until you get the account you want)
Re:Ask HN: Real-world anecdotes of MySQL at scale? on Tuesday September 27, 2022 @09:53AM (#32995251)
Re:Why We’re Sticking with Ruby on Rails at Gitlab on Monday June 13, 2022 @05:09PM (#31731798)
GitHub uses minitest, but same situation.

I don't exactly agree that it's a design problem. I think there is a lot of value in testing at a high level (controller tests) and having them touch the full stack (down to the DB). Gives a lot of confidence that the code will work in production. Throwing money at it (running the tests in parallel) pretty much solves it.

I have seen FactoryBot use get out of control (creating 8x as many records as you'd expect). That's a really easy way to slow down a test suite :). One way I've found to fix that is by adding tests for the factories, and asserting they are only creating what you want them to.

On model tests, another thing GitHub did well was encourage using `.build` when possible to avoid writing the the DB.

Re:Why We’re Sticking with Ruby on Rails at Gitlab on Monday June 13, 2022 @01:35PM (#31728722)
I worked on GitHub's Rails app. The main way this was solved was by running tests in parallel. It's now available in default Rails: https://edgeguides.rubyonrails.org/testing.html#parallel-tes...

In addition to that, the test suite performance was regularly monitored. And like any performance issue, we'd instrument and then fix issues as they came up.

Older »