Clean null user profiles?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Clean null user profiles?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Clean null user profiles?  
Dean J Garrett


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-06 12:15 AM

We have a CS2002 classic ASP site that keeps growing the User Profile
tables. We allow guests to make purchases. Each time a guest browses the
site and catalog, an null user profile entry is made. Due to heavy user
traffic, over time the tables grow to a great degree. Does anyone have a
technique for periodically cleaning out these profiles, say once a week?
Some stored proc would be great if one exists.

Thanks!!







[ Post a follow-up to this message ]



    RE: Clean null user profiles?  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-29-06 10:21 PM

Hello Dean,

Just cleaning out the UserObject table would not help... since There are
addresses linked to these users (guests) and ofcourse there would be
anonymous basket/wishlist object also.

What I'd recommend is to write a program which basically gets all objects
from the UserObject table that match anonymous users (I forget the field..
basically it should be 0 for anonymous AND 1 for registered.. something like
that).. get the GUID's and load profiles, load addresses, load baskets...
clear baskets, delete addresses, and finally delete profiles. Needless to
say, this program would take a reasonable amount of time the first time its
run.. so you may want to setup some date-time range within which you'd
execute it.

It'd also depend on how many days worth of orders you store in your
transactions tables... so say if you store the last 3 months of orders.. the
n
you hsould look at eliminating only those anonymous profiles that were
created before 3 months.

--
Ravi Shankar


"Dean J Garrett" wrote:

> We have a CS2002 classic ASP site that keeps growing the User Profile
> tables. We allow guests to make purchases. Each time a guest browses the
> site and catalog, an null user profile entry is made. Due to heavy user
> traffic, over time the tables grow to a great degree. Does anyone have a
> technique for periodically cleaning out these profiles, say once a week?
> Some stored proc would be great if one exists.
>
> Thanks!!
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register