The search criteria would need to be refined further. We'd want to dump users that haven't posted anything since we don't want nodes floating around whose authors no longer exist -- assuming this could even happen without violating foreign key contraints. But I don't think it's uncommon that people create an account in order to ask a question, and then leave.

We'd also have to choose a somewhat arbitrary cutoff date for delinquent users; if the creation date and last-here date match but occurred last week, dropping that user would be uncalled for. More likely we'd want to look at users that haven't visited in over a year or so.

Looking at users that have never created a node, and whose creation/last-here date occurred over a year ago would (I *speculate*) result in a rather short list. We might have a few hundred users but that's a trivial amount to store in a database, unlike your situation.

As to the safety issue of altering a production system, adding and deleting entries is just normal use for a database -- it's not like we're dropping tables or changing schemas, so I truly doubt that any havoc would result.

Update: Cool link theorbtwo. That's more users than I'd expected, although compared to the number of writeups (156786, not counting Q&A presumeably), even say 5,000 or so nonparticipating users is unlikely to be a drain on the system.


In reply to Re: Database Clean up? by djantzen
in thread Database Clean up? by defyance

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.