Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Tree Representation

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-05 : 10:41:54
Aravind writes "I have a set of members who have a referrer. This is to be represented as a multilevel tree. I implemented this in the front
end using asp. The main problem started when the database grew.
I have nearly 1 lakh records & the asp page goes for a toss when
it tries to display the tree structure upto 6 levels.

I have tried using cursors(as suggested in one of the replies in
the forum) but this also takes a lot of time nearly(1hr 20 mins for 1 lakh records) . I'll be happy if you could help me in this matter.

the table has following structure:

memberid | name | email | referrer
-----------------------------------
1 | xxx | ......| 0
2 | xxx | ......| 1
3 | xxx | ......| 1
4 | xxx | ......| 2
5 | xxx | ......| 5


the tree structure is not binary,it is a general tree

Thank you in advance"
   

- Advertisement -