[support] views' block or custom block ?

Earnie Boyd earnie at users.sourceforge.net
Wed May 26 14:43:25 UTC 2010


Amit Vyas wrote:
> In a performance context, custom module block will be the best solution
> as per my understanding. Because you are not storing your block code in
> the database in that case. It is always good not to store code in the
> database so if you are creating a view [which is easy to implement but
> not recommended for performance point of view] then it will store the
> code in the database.
>

That is a SWAG if I ever heard one.  The chances of the view being 
slower than code stored in a file on disk is plus or minus 50 percent. 
The extra hit on the DB for the view is minimized because of caching.

-- 
Earnie
-- http://progw.com
-- http://www.for-my-kids.com


More information about the support mailing list