<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 8, 2014 at 1:01 PM, Роман Рубан <span dir="ltr"><<a href="mailto:ryr1986@gmail.com" target="_blank">ryr1986@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think in this case A and B should be different tables by default</div><div class="gmail_extra"><div class="gmail_quote">
<br></div></div></blockquote><div> </div><div>In the Matthew question, both entities are inherited from the common base class. There are several ways to represent inheritance in relational model. Pony uses signle-table inheritance, because this way is the most efficient in most cases. With signle-table inheritance it is not necessary to perform join in order to load objects from the database.</div>
<div><br></div><div>It is possible that in future we'll add support to less efficient types of inheritance, for example to provide compatibility with Django-generated databases. Then it will be possible to choose if inherited classes should use the same table or different tables.</div>
<div><br></div><div><br></div></div></div></div>