pp wrote:

> It should be:
> $article = mgd_get_article($art->id);
> $person = mgd_get_person ($article->creator);
>
> But anyway my idea is still the same.
> To get object' creator field with no special querry.

You mean the creator object, without an extra query? The extra query
would have to be done anyway (possibly automatically), but that means
you also get it if you don't want it (performance). Plus, you'd also
have to fetch

$person->creator->owner->members->...

etc. for that to have consistent behaviour. In the end you have the
entire database in memory, most likely.

> But I think I could use some extra object (article,topic) field,
> an insert there creator name, while creating object.
> It could be much faster.

Oh, I see. Hmm. Not all persons are obliged to have usernames.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to