Best Practice for unused entities and components

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Best Practice for unused entities and components

cjhorton
Hi Everyone,

Several months ago I stumbled upon a post somewhat discussing this, but I cannot find it now so I am posting a new message.

What is the best practice for unused entities and components?

Of the nearly 1000 entities my application will only use perhaps 50-100 of those.  Furthermore, I won't be using several of the OOTB components.  Do you recommend just commenting out the entities that won't be called?

Thanks!

-CJ
Reply | Threaded
Open this post in threaded view
|

Re: Best Practice for unused entities and components

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

first they don't take up any room in the DB since you are not add info
to them.
I doubt you will take a performance hit by leaving them in.

however if you want to and they have no relationships or are not used in
any SECA or service then you can comment them out.


cjhorton sent the following on 12/23/2008 11:42 AM:

> Hi Everyone,
>
> Several months ago I stumbled upon a post somewhat discussing this, but I
> cannot find it now so I am posting a new message.
>
> What is the best practice for unused entities and components?
>
> Of the nearly 1000 entities my application will only use perhaps 50-100 of
> those.  Furthermore, I won't be using several of the OOTB components.  Do
> you recommend just commenting out the entities that won't be called?
>
> Thanks!
>
> -CJ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJUU0frP3NbaWWqE4RAnkCAJ9httwVOSAmhC8VmGVbgk25uMGb+wCeJboI
3f12biA35u9epyEJoHAR3Ys=
=ULhG
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: Best Practice for unused entities and components

cjhorton
In that case I will just leave them in.

Thanks for the reply BJ.

On Tue, Dec 23, 2008 at 2:42 PM, BJ Freeman <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> first they don't take up any room in the DB since you are not add info
> to them.
> I doubt you will take a performance hit by leaving them in.
>
> however if you want to and they have no relationships or are not used in
> any SECA or service then you can comment them out.
>
>
> cjhorton sent the following on 12/23/2008 11:42 AM:
>> Hi Everyone,
>>
>> Several months ago I stumbled upon a post somewhat discussing this, but I
>> cannot find it now so I am posting a new message.
>>
>> What is the best practice for unused entities and components?
>>
>> Of the nearly 1000 entities my application will only use perhaps 50-100 of
>> those.  Furthermore, I won't be using several of the OOTB components.  Do
>> you recommend just commenting out the entities that won't be called?
>>
>> Thanks!
>>
>> -CJ
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJUU0frP3NbaWWqE4RAnkCAJ9httwVOSAmhC8VmGVbgk25uMGb+wCeJboI
> 3f12biA35u9epyEJoHAR3Ys=
> =ULhG
> -----END PGP SIGNATURE-----
>