I have a big doubt.
Let\'s take as example a database for a whatever company\'s orders.
Let\'s say that this company make around 2000 orders per month, so, a
Before you worry about query speed, consider the costs.
If you split the code into separate code, you will have to have code that handles it. Every bit of code you write has the chance to be wrong. You are asking for your code to be buggy at the expense of some unmeasured and imagined performance win.
Also consider the cost of machine time vs. programmer time.