Profiling a large migration process, I found 15-16% of total wall time was being spent in EngineVersion(), which was called almost 154k times when migrating 30k rows of data (over 5x/row). Given that the engine version is *slightly* unlikely to change in the course of a given connection, it makes sense to me to just fetch it once.

CommentFileSizeAuthor
sqlsrv-cache-version-number.patch1.47 KBmikeryan

Comments

mikeryan created an issue. See original summary.

beakerboy’s picture

Thank you for the patch, I plan on reviewing it soon.

beakerboy’s picture

Assigned: Unassigned » beakerboy
beakerboy’s picture

Category: Feature request » Bug report

Caching the version fixes two of the drupal Kernel testsuite failures, so I would consider this a bugfix.

beakerboy’s picture

Status: Needs review » Reviewed & tested by the community

I've merged this into my development repository.

  • Beakerboy committed 0aad74a on 8.x-1.x
    Issue #3094497 by mikeryan: Performance: cache version number
beakerboy’s picture

Status: Reviewed & tested by the community » Fixed

Merged into the official repository.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.