> You mean the creator object, without an extra query? The extra query > would have to be done anyway (possibly automatically),
Not especially. Just notice that as a user You log to admin interface once. And midgard authentication lets You keep information about who is logged. Whatever You do , You are always objects creator. Right? So midgard authentication system could store also user username. And imagine site where You need fetch 500-1000 articles , and get every person for every article. Next 500-1000 querries are needed then for getting person username. Got an idea? > 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->... No I do not need run any querry for member object here. > 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. Yeeeeeees.... I just noticed ;) But We are talking about users who log to any midgard sites. They _need_ username. Piotras --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
