Book a Demo

Author Topic: Advice: combine .EAP before or after migration to database?  (Read 7167 times)

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Advice: combine .EAP before or after migration to database?
« on: August 24, 2018, 04:09:38 pm »
We currently have two .eap based repositories.  There is some slight overlap (duplicated elements) but distinct packages across the two.  We plan to merge these into one repository and seek to move to using a 'real' database.

My question is - are we better off merging into one .eap file first and then migrating all to the new database, or should we migrate one at a time and merge in the new database?
I was thinking we could use the 'Copy / Paste Package" approach to do the merge.  I know this works between .eap based repositories, does it also work from an .eap file based to a database repository?
Any general or specific advice / gotchas we should be looking out for?

Thanks

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: Advice: combine .EAP before or after migration to database?
« Reply #1 on: August 25, 2018, 01:39:43 am »
I'm not sure it matters all that much. If you are comfortable doing it with eap files, then do the merge that way and then transfer. Keep backups along the way.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Advice: combine .EAP before or after migration to database?
« Reply #2 on: August 27, 2018, 07:23:36 pm »
I would do

- Create DBMS repository
- Transfer the largest .eap file to new DBMS repository
- XMI export the part you need from the second .eap repository
- XMI import into the DBMS repository.

XMI export keeps existing GUID's, which can be an advantage in a lot of scenario's.
I'm not sure if Copy/Past package does the same.

Geert

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Advice: combine .EAP before or after migration to database?
« Reply #3 on: August 28, 2018, 06:28:06 am »
XMI export and Import would be the way I'd do it as described by Geert.
Happy to help
:)

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Advice: combine .EAP before or after migration to database?
« Reply #4 on: August 28, 2018, 09:06:13 am »
XMI export keeps existing GUID's, which can be an advantage in a lot of scenario's.

I'm assuming (from past experience) that copy / paste retains the elements and relationships, even if they have new GUIDs in the target project.  Can you provide some examples of the advantages of preserving GUIDs?

Also does Sparx use true GUIDs, ie guaranteed unique across projects, or is there a risk that I will have GUID collision with an XMI inport?

Thanks

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Advice: combine .EAP before or after migration to database?
« Reply #5 on: August 28, 2018, 09:52:41 am »
Hi Matthew,

I believe (without proof) that Copy/Paste actually does an XMI export/import in the background, stripping GUIDs.  I suspect Cut/Paste preserves GUIDs.

Anyway, when merging repositories, you should use XMI export/import as recommended by others.  It is important to preserve GUIDs so that you can consolidate multiple instances of the same item into one.

We originally merged eight separate repositories into one enterprise repository. Three years later, we're still finding consolidatable items.  We wrote specific consolidation automation to make the process easier and SAFER!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Advice: combine .EAP before or after migration to database?
« Reply #6 on: August 28, 2018, 02:35:03 pm »
It is important to preserve GUIDs so that you can consolidate multiple instances of the same item into one.

The two repositories we are merging don't have a common history, they're not versions of the 'same' repository. Whilst we do have elements that are the same semantically, ie they represent the same thing and should be the same element, they have different origin stories so would have different GUIDs.  On that basis I think there is little difference either way (?)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Advice: combine .EAP before or after migration to database?
« Reply #7 on: August 28, 2018, 03:12:45 pm »
I still think you are better off keeping GUID's.

One (of the many) reasons:
What if you accidentally destroy a part of the model?
If you kept the same GUID's you can still reconstruct it from a backup.

About the GUID's in EA: Yes in most places they are regular GUID's.
Just a few places (like tagged values) have some weird repeating sections in their GUID's.

Geert