Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
myss4404205dWell honestly, that big of improvement looks to me more like poorly written codebase beforehand than optimization gain from switching the languages.
Could you shed some more light on this, am geniualy interested 🤔🤓
C0D456973205dWtf was that php api doing?
Wtf isn't the Go api doing anymore?
One doesn't just get that kind of performance increase if it's doing the same thing, yes Go is faster but if it's connecting to the same database(s) and executing the same queries, then either the php api was built by someone with no clue on performance, or the database queries have been rewritten or moved to a new DB.
I've got a feeling this was a few very poor DB queries behind the scenes.
Angry1141205d@myss It really was just that; very poorly written code.
It was really old code, too. Something like 11 years, a total mess. It somehow contained both Zend 1 and 2 frameworks, AND spaghetti code.
It used a custom built ORM that pretty much remain unchanged in it's 11-year existence.
@COD4 - we used /most/ of the old database but we didn't run the queries. The PHP code had shit like "select something and then loop through the dataset in PHP to map them into an object" built into the ORM.