symfony - Multiple level Inheritance Mapping with doctrine 2 -


i have 3 entities wich "addressable" (can have address):

delivery points
customers
distribution centers

every addressable entity geolocatable (has latitude , longitude), have entities geolocatable not addressable, track points , route points (an ordered sequence of lat , lngs).

what best way (please take performance in account, tables may have millions of rows), achieve doctrine 2 (using symfony2 , yaml mapping)?

my question is: best approach problem? mapped supperclasses? single table inheritance? multi table inheritance? didn't wich 1 best reading doctrine's docs.

i'm using postgresql, if matters.

the fastest option not using table-inheritance @ , mapping entities distinct tables if want use table-inheritance reason ...

single table inheritance faster architecture there less joins in queries ... see this article idea of how table inheritance works/looks ...

metadata cached there not noticable performance impact between using mapped-superclasses or providing complete mappings (which bad in terms dry) every single of entities.

the real performance gain come optimizing queries , caching these , results.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -