upgrading from 5.6 to 6.1.6.29113

upgrading from 5.6 to 6.1.6.29113

This question is not answered

We are trying to upgrade from 5.6 to 6.1 and when the cs_Security_EffectivePermissions_Calculate starts executing it takes over 5 hours to complete. This is blocking us from getting the package ready for an upgrade. We also have been in contact with hosting about this. Thank you in advance for any help.

We believe that it is somewhere located in the following area.

DECLARE pCursor CURSOR FOR

                 select t1.PName+N'':''+t1.PType+N'':''+convert(nvarchar,coalesce(sum(t2.PValueLen),0))+N'':''+convert(nvarchar,t1.PValueLen)+N'':'',t1.PValue

                 from @t t1 left outer join @t t2 on t1.GroupID=t2.GroupID and t1.id>t2.id

                 where t1.GroupID=@GroupID

                 group by t1.id,t1.GroupID,t1.PName,t1.PType,t1.PValueLen,t1.PValue

                 order by t1.id

                 open pCursor

                 fetch next from pCursor into @PName,@PValue

                 while @@fetch_status = 0

                 begin

                       updatetext cs_Groups.PropertyNames  @namesPtr null 0 @PName

                       updatetext cs_Groups.PropertyValues @valuesPtr null 0 @PValue

                       --select @GroupID,@PName,@PValue

                       fetch next from pCursor into @PName,@PValue

                 end

                 close pCursor

                 deallocate pCursor

All Replies
  • Better stated may be like this...

    We have about 2000 Groups in our application, and it is likely that the stored proc’s recursive traversal is slowing down due to missing indexes. In future, we plan to have 10s of thousands of Groups.

  • I would make that 100's of thousands of groups and possibly millions and allow me to clarify why.

    We have 4 user types on our site - 3 of which are created as an actual group since thats the only way they can have access to applications (Blogs, Wiki's, Forum's, etc.) and they have the ability to create sub groups.