Skip to content
Browse files

wrap syn_store loads in transactions for better performance. non-tran…

…sactional DBI backends will ignore the AutoCommit settings, I think
  • Loading branch information...
1 parent 9a0dc72 commit 242f3c171789638049da5c72ab344204940f8f2d @rbuels rbuels committed Aug 16, 2011
Showing with 6 additions and 0 deletions.
  1. +3 −0 bin/gbrowse_syn_load_alignment_database.pl
  2. +3 −0 bin/gbrowse_syn_load_alignments_msa.pl
View
3 bin/gbrowse_syn_load_alignment_database.pl
@@ -67,4 +67,7 @@ =head1 DESCRIPTION
-verbose => $verbose,
);
+# wrap the load in a transaction for speed
+$syn_store->dbh->{AutoCommit} = 0;
$loader->load( @ARGV );
+$syn_store->dbh->{AutoCommit} = 0;
View
3 bin/gbrowse_syn_load_alignments_msa.pl
@@ -93,4 +93,7 @@ =head1 DESCRIPTION
-mapres => $mapres,
);
+# wrap the load in a transaction for speed
+$syn_store->dbh->{AutoCommit} = 0;
$loader->load( @ARGV );
+$syn_store->dbh->{AutoCommit} = 1;

0 comments on commit 242f3c1

Please sign in to comment.
Something went wrong with that request. Please try again.