hi!
this procedure takes app. 7 minutes to calculate all the levels when there are 4000 members under a sponsor alltogether in all the branches. how to make it work faster?
if exists (select name from tempdb..sysobjects where name = '##PregledTock')
drop table ##PregledTock
select NAZIV as...
I have a MLM aplication and want to calculate POINTS for members. I have a trigger on the MEMBERS table that is triggered on UPDATE.
i'm only going to describe three fields in my table:
MEMBER_ID, SPONSOR_ID, BONUS, ACUMULATED_BONUS
(acumulated bonus is BONUS + ACUMULATED_BONUS from all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.