Duplicating the NODES table
From: Branko Čibej <brane_at_wandisco.com>
Date: Fri, 29 Aug 2014 19:31:51 +0200
(this is mostly for Ben's benefit)
I ran a quick test to determine how expensive it would be to duplicate
(Note that I already added the required record in the WCROOT table.)
-- Brane
$ time sqlite3 all-subversion.copy.db 'select wc_id, count(*) from nodes group by wc_id;'
real 0m0.072s
$ time sqlite3 all-subversion.copy.db 'insert into nodes select 2, local_relpath, op_depth, parent_relpath, repos_id, repos_path, revision, presence, moved_here, moved_to, kind, properties, depth, checksum, symlink_target, changed_revision, changed_date, changed_author, translated_size, last_mod_time, dav_cache, file_external, inherited_props from nodes where wc_id=1;'
real 0m16.183s
$ time sqlite3 all-subversion.copy.db 'select wc_id, count(*) from nodes group by wc_id;'
real 0m0.126s
$ time sqlite3 all-subversion.copy.db 'delete from nodes where wc_id=2;'
real 0m7.675s
-- Branko Čibej | Director of Subversion WANdisco | Realising the impossibilities of Big Data e. brane_at_wandisco.comReceived on 2014-08-29 19:32:23 CEST |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.