How can we help you today? How can we help you today?

Time taken for database deployment using Teamcity and Redgate tools

I use teamcity for CI process of database with the help of Redgate DLM automation build and Redgate DLM automation Sync step. It is taking about minutes to complete the 2 steps. Is there any method to reduce the time taken to complete the process?
deeps
0

Comments

5 comments

  • Diogo
    I don't think there's much you can do to speed it. May be it's just taking a bit of time to compare your the build artifact against your production database if you're dealing with a large database.
    Diogo
    0
  • deeps
    It takes about 40 minutes to complete the build.
    deeps
    0
  • AlexYates
    It's worth taking a look at the specs of your build agent.

    Often TeamCity build agents run on cheap hardware because compiling .NET code isn't particularly resource intensive. Running a DB build is quite different.

    Does it take a similar amount of time to run a build on your local machine? You can test this out by running the build manually using PowerShell. (See example 3 at the bottom of these docs: https://documentation.red-gate.com/sca3/reference/powershell-cmdlets/sync-databaseschema)
    AlexYates
    0
  • way0utwest
    I'd be curious to see the logs with timing.  Where is this slow?
    way0utwest
    0
  • deeps
    Most of the time is taken in the build step, where a temporary database is build from scratch.It takes around 20-25 minutes.
    deeps
    0

Add comment

Please sign in to leave a comment.