Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: 'Delete', not just 'retire' users?: msg#00005

bug-tracking.roundup.user

Subject: RE: 'Delete', not just 'retire' users?

Thanks for speedy suggestions Richard and Jean.

Actually, we found that exporting and importing the user table to CSV
seemed the easiest solution (didn't want to spend to much time learning
the joys of python). Note that we didn't actually need to edit the
table, as unwanted users were already retired and weren't included in
the export.

Seems like a simple solution for cases like ours, but I presume you have
to be very careful not to delete users reference in other tables (as
Richard noted).

-Gordon

> > We had a mishap where a large number of users (~1500) were
> accidentally
> > added to our Roundup user list (don't ask - our tracker email
address
> > got on a mailing list with tons of people on the 'to' line, so
Roundup
> > added them all). Since then, Roundup has been running very slowly
(its
> > on an old machine and we aren't using the most efficient db).
> >
> > We went through and retired the unwanted users, but roundup is still
> > slow. Is there is a way to 'delete' users rather than just retire
> them?
> > I realize you would not usually do this, as it might break links in
> the
> > hyperdb.
>
> The Item class destroy() method was written for this sort of extreme
> case.
> From its docstring:
>
> WARNING: this method should never be used except in extremely rare
> situations where there could never be links to the item
> being
> deleted
> WARNING: use retire() instead
> WARNING: the properties of this item will not be available ever
again
> WARNING: really, use retire() instead
>
> The hyperdb *will break* if you delete an item which is referenced by
> another
> item.
>
> Let me know if you need help writing the code. The example scripts
that
> come
> with Roundup should provide a starting point though.
>
>
> Richard



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation