Hi dws,

You make a very fair point with respect to not optimising prior to understanding that the code works first and that the overhead associated with fetching the data from the database may well be significant. To check this out I have profiled the execution of my script. Here is a clip from the results of dprofpp:

> dprofpp Total Elapsed Time = -82.1369 Seconds User+System Time = 497.6071 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 35.9 179.0 175.93 105289 0.0002 0.0002 DBI::st::execute 33.9 168.9 137.38 105266 0.0000 0.0000 main::GetMinimalDataType snip...

As you can see the majority of the time is spent in DBI::st::execute but a significant portion of the time is taken by the GetMinimalDataType function. Any savings here would be very useful.

Many thanks for the feedback.

Regards,
Dom.

Update: Please note that this profile is on a small test set of data and not on the real volume.


In reply to Re: Re: Discovering minimal relational data types on large volumes by dbush
in thread Discovering minimal relational data types on large volumes by dbush

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.