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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |