InstructionWhich7142
Registered User.
- Local time
- Today, 07:59
- Joined
- Feb 24, 2010
- Messages
- 206
I have a table of data which creates a tree structure, with "rererence numbers" and "parent reference numbers"
I have an update query which looks for a value against a parent and multiplies it by a "per parent" field on the child and writes this value against the child
This goes on for up to 6 tiers down,
What has thrown me is that it runs reasionably swiftly for 165000 records but then makes 1.3 million updates!
I was assuming i would have to run multiple passes for every level (i've done something similar in the past and had to do this)
Have i some how stumbled upon a recursive query? or is it seeing changes in records and rerunning previous updates again?
I have an update query which looks for a value against a parent and multiplies it by a "per parent" field on the child and writes this value against the child
This goes on for up to 6 tiers down,
What has thrown me is that it runs reasionably swiftly for 165000 records but then makes 1.3 million updates!
I was assuming i would have to run multiple passes for every level (i've done something similar in the past and had to do this)
Have i some how stumbled upon a recursive query? or is it seeing changes in records and rerunning previous updates again?