Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

by princepawn (Parson)
on Nov 28, 2000 at 23:53 UTC ( #43752=note: print w/ replies, xml ) Need Help??


in reply to Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
in thread Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

First, switching field positions in a table is usually not a good idea

I agree that it may not be a good idea but in the prototyping stages of a project anything including switching field positions can happen.

And the idea is to hope that the code itself can remain relatively invariant in the face of the design changes that can occur almost daily when a new project is underway.


Comment on Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
Re: Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
by swiftone (Curate) on Nov 28, 2000 at 23:54 UTC
    But if you select by fields rather than by * as he said, changing the order in the table shouldn't affect your code at all.

      SELECT * FROM blah ORDER BY keyword

      Lets face it, most database queries pay little attention to the physical location of the data within the database...

      Then again, if we were really wirried about the physical location and order of the information we were accessing would you really argue that a generic database was the best way of storing?

        No no no, the '*' is the problem here, we aren't talking row order, we are talking about switching columns around. It's so evil your mind refused to believe it was possible =)

        --
        $you = new YOU;
        honk() if $you->love(perl)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://43752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-09-16 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls