# The Hidden Cost of Convenience: Rethinking Old ORM Patterns for Scale

DevFeed: [The Hidden Cost of Convenience: Rethinking Old ORM Patterns for Scale](<https://devfeed.tech/articles/the-hidden-cost-of-convenience-rethinking-old-orm-patterns-for-scale-20459.md>)

Original publisher: [Read original article](<https://eng.wealthfront.com/2025/12/08/the-hidden-cost-of-convenience-rethinking-old-orm-patterns-for-scale/>)

Author: Andrew Houts

Published: 2025-12-08T22:06:50Z

Content type: article

Language: en

Sources: [Wealthfront](<https://devfeed.tech/sources/wealthfront.md>)

Topics: [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Code](<https://devfeed.tech/topics/code.md>), [data](<https://devfeed.tech/topics/data.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Database](<https://devfeed.tech/topics/database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [code](<https://devfeed.tech/tags/code.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [flame-graph](<https://devfeed.tech/tags/flame-graph.md>), [orm](<https://devfeed.tech/tags/orm.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [sql](<https://devfeed.tech/tags/sql.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [wealthfront-engineering](<https://devfeed.tech/tags/wealthfront-engineering.md>)

## AI overview

Wealthfront examines performance problems in an aging portfolio balance calculation system whose overnight batch processing scaled poorly as client growth and assets under management increased. The article describes profiling the job with command-line and sampling-profiler tools, using collected data and flame graphs to investigate where runtime was spent.

## Source excerpt

Ever been here before? Stuck with a job that needs to be continually revisited because its performance gets worse with every passing day, and each attempt at improving said performance yields diminishing returns? This is the situation we found ourselves in with the portfolio balance calculation system--the code responsible for aggregating data from multiple sources... Read more