in reply to Queuing DBI transactions
Not too difficult. Throw the queries into a queue prior to sending them to the DBMS. If the query was successful, pop the query from the queue. There are many different types of queues but a simple @query_queue sounds like it will be sufficient (pseudo code):
my @query_queue; my $query = qq{ UPDATE wms_rf_server_port SET available = ?, last_updated_by = ?, last_updated_date = ? WHERE port_id IN ( $port_ids ) }; push @query_queue, $query .... if the query is successful { pop @query_queue; .... else, reconnect and try sending the query back to the DBMS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Queuing DBI transactions
by ikegami (Patriarch) on Oct 04, 2007 at 19:03 UTC | |
|
Re^2: Queuing DBI transactions
by Akoya (Scribe) on Oct 04, 2007 at 18:10 UTC | |
by jfroebe (Parson) on Oct 04, 2007 at 18:43 UTC | |
|
Re^2: Queuing DBI transactions
by SuicideJunkie (Vicar) on Oct 04, 2007 at 18:04 UTC | |
by jfroebe (Parson) on Oct 04, 2007 at 18:38 UTC |