The document discusses performance anti-patterns that can occur when using object-relational mapping (ORM) frameworks. It presents a framework for detecting and ranking performance anti-patterns based on their impact. One example anti-pattern is retrieving excessive data from the database that is never used. The framework detects this by analyzing data usage and checking if retrieved data is ever accessed. Experiments on open-source systems show this anti-pattern can be detected and fixing it improves performance significantly with medium to large effect sizes. The ranks of anti-patterns are also consistent across different data scales.