[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
@Frank Liu Hmm, that's interesting. The reason DMZ adds the aliases is because, unlike the original, DMZ supports having multiple relationships to the same model. Therefore, to query these relationships, it is necessary to alias the related tables. Also, DMZ supports deep relationships, with the same problem. The only databases I have to test against are PostgreSQL (which I fully support) and MySQL (which I test against occasionally). Both of these support the as keyword, so I've never noticed that it isn't necessary. I'm planning on creating a performance-focused release of DMZ in the next few weeks. I'll remove the apparently unnecessary as from the joins at that time. Thanks for pointing it out. |
Welcome Guest, Not a member yet? Register Sign In |