logo       


Re: cvsdb: The "descs" table: msg#00012

Subject: Re: cvsdb: The "descs" table
James Henstridge wrote:
If doing a complete re-build, there is no need to SELECT first. So I think
that the WipeDb function is still valid to have. But I could change the
code so that it's only used in the complete-rebuild case.

You said above that you want to combine the checkin db data with your
own tables above.  If you're blowing away all the data on an update,
won't that screw with foreign key constraints?

You've got a point.

Having big long running transactions is definitely a problem if you
have multiple writers accessing the database.  So it is generally a
good idea to commit regularly (although committing too often can
introduce performance problems itself).

On the other hand: The whole point about transactions is that you don't end up in a half-done, strange state.

I have a habit of using "if CONSTANT == variable", to be able to catch
cases where I have written a "=" instead of "==". I feel rather strongly
about this, as I believe that it really catches bugs. The conding style
isn't all that consistent as it is, so I hope I can keep my "backwards"
equality tests.

I am guessing that you picked up this habbit in a language other than
Python.  A statement like "if variable = CONSTANT: ..." is already a
syntax error in Python since an assignment is not an expression.

Hey - I learned something new about Python today. In the light of that, I'll change the equality tests.

As Federico says in that thread, psycopg2 doesn't do connection
pooling behind your back.

He says that one _may_ set up connection pooling. The feature must be there for a reason, i.e. be useful in some situations. So I'd prefer the safe-for-all solution.

--
Greetings from Troels Arvin <troels@xxxxxxxx>
http://troels.arvin.dk/


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | 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