speed up insertion into edges index