[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



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-&gt;location-&gt;notify_group-&gt;esc_group-&gt;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-&gt;new($user_user_id) for each user in that list I
thought about creating a hash of objects.

$users{$user_user_id} = AC::User-&gt;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>