Hi all,
I have a data processing function that gets run at every end of month. it has a single level of nested queries (ie. a db_foreach with multiple queries inside it).
I want to set autocommit to off for the second pool to speed it up some (i believe it will do?).
That's the easy part - i can set it to off on every loop if i like.
The hard part is committing (which I obviously have to do) and setting autocommit back to on (or will that just go away when the session closes?).
Once i'm out of the db_foreach, how do i run a db_dml against a specific pool?
I guess I could do a:
db_foreach dummy "select 1" {
db_dml foo ""
}
but that makes me feel dirty...
Request notifications