Purging anonymous users not having ordered more frequently

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Purging anonymous users not having ordered more frequently

Post by WylieE » Wed Jun 16, 2010 12:09 pm

I orginally added my question to an existing thread, but this may be a sufficiently distinct question to merit its own thread.

My question: Is it possible to have anonymous users that have NOT placed an order to be deleted at a faster rate than anonymous users that HAVE placed an order?

We have anonymous user maintenance set to save for 45 days. Most of our products are custom builds and it is not uncommon for a customer to make additions to an order during the production process. Our production cycle averages 4-6 weeks, but can stretch to 8-10 weeks. It looks like an anonymous customers card info is being deleted along with the rest of the anonymous account info.

We have a large number of tire-kickers (400k+ for the last 45 days). There are currently over 700K users in our users table and this is impacting performance. We need to keep the information on anonymous users that have placed a record, but we need to purge the tirekickers at a faster rate. Can this be done? Are there possible negative repercussions to this?

Thanks,
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Purging anonymous users not having ordered more frequently

Post by mazhar » Thu Jun 17, 2010 4:16 am

You can keep your standard time span for anonymous users removal at 45 days while on the other hand you can setup your custom timed event as described here http://wiki.ablecommerce.com/index.php/ ... med_Events

Finally you need to write some code against that custom event to look for anonymous users and remove them if they have no order associated.

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: Purging anonymous users not having ordered more frequently

Post by WylieE » Thu Jun 17, 2010 12:55 pm

Good to know.

If I purge the ac_Users table of anonymous accounts (having placed no orders) do I run the risk of creating orphan data anywhere? (ie. ac_basketitems)
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Purging anonymous users not having ordered more frequently

Post by mazhar » Fri Jun 18, 2010 5:12 am

That's a good question. When removing those users first remove baskets and wishlists for each user and then drop user it self.

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Purging anonymous users not having ordered more frequently

Post by foodsleuth » Wed Sep 01, 2010 12:30 pm

Is this something that must be done manually (ie: removal of baskets, wishlists) for anonymous users? or does able do this automatically based on the storage dates?

Post Reply