Which would be faster and more efficient memory-wise?
- A CFM file containing individual CFQUERY calls
- A CFM file containing individual CFINVOKE calls to CFC's containing individual methods for each of those same queries
I realize there are different ways of invoking methods of a component, such as using createobject. For now, let's limit the discussion to just the above two options.
I don't have any sample code. Just want to know what would be considered best practice in the above situation.
Also, I am using newer versions of Adobe ColdFusion (2016, 2018, 2021), so Lucee is not an option.