Jump to content

Customer last log-in date


lyndsiesal
 Share

Recommended Posts

Is there a way to see when the last time a customer logged in was?  My database is 10+ years old and I've managed to delete customer accounts who had 0 orders and were older than 1 year but I'm still left with nearly 80K customer accounts.  I think it would be great if I could reduce my database further by deleting customer accounts who have not logged in in the past 5 years or so.  My database lags so badly that I can't view statistics or do any type of exports and I'd really like to start exploring ways to pare it down.  

Link to comment
Share on other sites

My store is a download store so the orders and download records are in the millions.  I switched from an older dedicated server to a new VPS about a year ago, hoping for some improvement but no luck.  The other thing I'd like to try to do is find a way to identify and delete possible orphaned download and order records.  Maybe the database is getting stuck looking for something that might not be there?  I just don't know.  

My downloads table has 1,299,799 records and order inventory is at 1,300,401.  I don't know if that discrepancy is significant or not but they should match considering everything I sell is a download, right?  

Link to comment
Share on other sites

That is certainly a larger number of records than most but as Brian said, tables with millions of records should not ever be an issue if the tables are indexed correctly - with unique indexes and correctly written queries, finding one record from a thousand records would only be marginally quicker than find the same one from ten million records

Link to comment
Share on other sites

  • 3 weeks later...

We would ask, in what context?

Here is some technical documentation:
https://dev.mysql.com/doc/refman/5.6/en/optimization-indexes.html

With respect to what CubeCart recommends, there is a list that is used in admin, Maintenance, Database tab  -- the list is found in the admin file /sources/maintenance.index.inc.php, starting at around line 557.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...