Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
myss351111dWell 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 🤔🤓
C0D44693311dWtf 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.
Angry105211d@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.