Book a Demo

Author Topic: Lousy Subversion (svn) Performance Undo Check Out  (Read 4459 times)

EdK

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Lousy Subversion (svn) Performance Undo Check Out
« on: March 07, 2013, 07:25:06 am »
Performing an "Undo Check Out" of a single package takes a really really long time and my users will not be happy.  I find the lousy performance odd since a regular "Check out" and "Check in" go pretty quick.

Is there anything that can be done to improve performance?

R/S
Ed K
EA V10.0.1006
Subversion 1.7.8
R/S Ed K
(EA Ultimate Edition Version 12.1.1228)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Lousy Subversion (svn) Performance Undo Check
« Reply #1 on: March 07, 2013, 07:43:50 am »
You should keep in mind that an undo involves a lot of database operations. EA has to delete all elements for the controlled package and the to re-import. Depending on the size this will take some time.

OTOH: using undo indicates that someone worked brain-to-keyboard without really using the brain. So that's the punishment for it.

q.

EdK

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Lousy Subversion (svn) Performance Undo Check
« Reply #2 on: March 07, 2013, 08:16:01 am »
I am slowly grasping the inner workings between EA, SVN and the DBMS repository so please bear with me...

Why would an undo check out have a lot of DB transactions?

When I select the "Undo check out", the SVN client should be instructed to just discard all uncommitted changes and all the uncommitted changes should just exist locally in my SVN Working Copy.

What am I missing?
R/S Ed K
(EA Ultimate Edition Version 12.1.1228)

EdK

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Lousy Subversion (svn) Performance Undo Check
« Reply #3 on: March 07, 2013, 08:40:16 am »
Disregard my last post..

After some experimentation, I do see now that the DB (i.e., EA's repository) does in fact get updated with a user's last set of uncommitted changes.

So now I do understand why, for an undo check out, there would need to be a bunch of DB txns to delete elements and refetch the last good ones from the SVN repository

Ed K.
R/S Ed K
(EA Ultimate Edition Version 12.1.1228)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Lousy Subversion (svn) Performance Undo Check
« Reply #4 on: March 07, 2013, 08:51:55 am »
Version control in EA operates on XMI files (the industry standard format for model interchange) while the model format that EA operates on a database. The time that you see doing an undo check out is it being re-imported into the database because you may have made changes while it was checked out (editable). Get Latest does exactly the same thing (but can know that you're up to date)