Hi, i'm creating perl app and using DBIx, but when i'm searching first time in it,it takes about 1 minute, i looked at DBIx cookbook and crawled google but i think i have done everything to optimise it. i've created resultset statically. This is base Schema:

package MyDictionary::Schema; use base 'DBIx::Class::Schema'; __PACKAGE__->load_classes('Engword','Skword','En_To_Sk','En_Phrase','E +n_Irregular'); 1; and like this look other 5 tables: package MyDictionary::Schema::Skword; use base 'DBIx::Class::Core'; __PACKAGE__->table('skwordmeaning'); __PACKAGE__->add_columns( sk_id => { data_type => 'integer', is_auto_increment => 1, }, skword => { data_type => 'text', }, ); __PACKAGE__->set_primary_key('sk_id'); __PACKAGE__->has_many(en_to_sk => 'MyDictionary::Schema::En_To_Sk', 's +k_id'); __PACKAGE__->many_to_many(engwords => 'en_to_sk','engword' ); 1;

I have many to many relationships and two tables with more then 400 000 records, can you someone please advice how can i optimise startup? Thanks a lot


In reply to DBIx startup slow by anjalis

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.