[Pdns-dev] Proposal: Backend API adjustments for authoritative 3.0

Augie Schwer augie.schwer at gmail.com
Sat Jul 24 02:30:41 CEST 2010


On Mon, Jul 19, 2010 at 5:19 AM, Maik Zumstrull
<maik.zumstrull at rz.uni-karlsruhe.de> wrote:
> 3) Split and rename startTransaction()
> As of now, startTransaction() does two different things: it begins a
> transaction, and it deletes all records for a given zone.
> Suggested fix: Replace startTransaction() with two functions
> beginTransaction() and clearZone(). Begin would make a better
> counterpart to commitTransaction() because of the obvious SQL relation,
> and splitting out clearZone() means that the functions actually do
> what the name suggests, instead of having a completely unrelated
> additional effect. (I'm not sure about the clearZone name, maybe
> something more verbose like clearAllZoneRecords.)

Making it so zone transfers don't mass delete and insert into the DB
back-end would be great; doing this on large data sets can wreak havoc
on the DBs while it's happening.


-- 
Augie Schwer    -    Augie at Schwer.us    -    http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072


More information about the Pdns-dev mailing list