[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Tue Apr 27 20:09:57 2004 -->
- <!--x-from-r13: psbjyre ng bhgcbfgfragvary.pbz (Quevf Tbjyre) -->
- <!--x-message-id: 1083110917.17415.153.camel@devel -->
- <!--x-subject: [ale] Organizing data -->
- <li><em>date</em>: Tue Apr 27 20:09:57 2004</li>
- <li><em>from</em>: cfowler at outpostsentinel.com (Chris Fowler)</li>
- <li><em>subject</em>: [ale] Organizing data</li>
Here is the output:
<a rel="nofollow" href="http://www.linxdev.com/out.html">http://www.linxdev.com/out.html</a>
The structure looks like this.
alarm->location->notify_group->esc_group->user
Everything is 1 to 1 up to esc_group. A notify_group could
have (n) esc_groups and an esc_group could have (n) users. In the
out.html file you'll see that.
I thought about going through the database creating object like
AC::User, AC::Esc_Gropup, etc for each piece of data. I would then
walk through my list of groups doing selects to get the proper data.
The select statement that generated that out.html actually gets me the
data I need not all of it. So it is possible there are esc_groups and
users in the database that do not show up in the report. So I do not
have to create user objects for all users in the database. To keep from
doing a AC::User->new($user_user_id) for each user in that list I
thought about creating a hash of objects.
$users{$user_user_id} = AC::User->new($user_user_id, $user_email) if not
$users($user_user_id);
This way I will not create any unecessary objects.
Would this be the best way to group that data? I'm trying to do it in
as few cycles as possible because I have no idea how big that report can
get.
Thanks,
Chris
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01211" href="msg01211.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="01212" href="msg01212.html">[ale] Organizing data</a></strong>
<ul><li><em>From:</em> phasefx at magusaptus.com (Jason Etheridge)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01208.html">[ale] Converting .VCF files to .ldif</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01210.html">[ale] Converting .VCF files to .ldif</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01206.html">[ale] laptop cooling</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01211.html">[ale] Organizing data</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01209"><strong>Date</strong></a></li>
<li><a href="threads.html#01209"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>