Re: Deep hierarchical search
Re: Deep hierarchical search
- Subject: Re: Deep hierarchical search
- From: Mike Schrag <email@hidden>
- Date: Fri, 21 Sep 2007 07:13:42 -0400
If your tree is arbitrarily deep (which is sounds like it is), there
is no magic bullet for this -- it's going to suck. I've written a
couple posts on this before:
http://lists.apple.com/archives/Webobjects-dev/2006/Jun/msg00005.html
and
http://lists.apple.com/archives/webobjects-dev/2007/Jul/msg00471.html
Somewhere there's a third one, but I can't find it.
ms
On Sep 20, 2007, at 9:40 PM, Klaus Berkling wrote:
I hope someone has thoughts on performing a search through a
hierarchical data model.
I have a WO application that receives, stores and retrieves student
study information. More here:
http://www.dyned.com/products/internetrm.shtml
In my model I have a group entity which have sub-groups via one-to-
many relationship back to itself. These groups then have classes
with students. There is a class entity with many-to-many
relationships to the student entity. A student can be in more then
one class.
There is a search I need to implement that returns matching groups,
classes and students within a givem parent group.
I can reach all the objects through relationships so starting with
a parent group I can walk through all the sub-groups, classes and
students arrays. This is time consuming.
I'm trying to think of a fetch specification that avoids some of
the recursive looping I do now.
Any thoughts? Many thanks in advanced.
kib
"Success is not final, failure is not fatal: it is the courage to
continue that counts.”
- Winston Churchill
--
Klaus Berkling
Systems Administrator
DynEd International, Inc.
www.dyned.com | web.mac.com/kib
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden