Book a Demo

Author Topic: Compact Repository model  (Read 5323 times)

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Compact Repository model
« on: January 05, 2018, 02:33:23 pm »
Our EA repository (SQL Server) is getting quite large and performance has become quite slow.

Does anyone know how to compact a DBMS model to improve performance? Not a .eap.

Thanks,
Rupert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Compact Repository model
« Reply #1 on: January 05, 2018, 08:40:43 pm »
You should ask your DBA. He should know. If he'd doesn't: fire him and hire another one.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Compact Repository model
« Reply #2 on: January 05, 2018, 08:59:10 pm »
Rupert,

In modern databases there is not really a linear correlation between database size and performance.
You DBA might be able to reduce the size by removing unallocated space, but I'm pretty sure that won't do anything for your performance.

One of the things you might want to look as is the auditing feature. That is known to bloat the database and cause performance issues.
Other then that, it is often more of a network issue then it is a database issue.
If you ask your DBA to monitor the performance on the database he will probably say that there is nothing wrong on the database side and that everything runs smoothly.

EA typically sends hundreds of tiny queries to the database, so you might want to ask your DBA to tune the server for this type of usage

Geert

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Compact Repository model
« Reply #3 on: January 05, 2018, 11:46:17 pm »
The auditing records does show down EA performance, as Geert pointed.  In one of my engagements,  the size came down from 3.6 GB to 700 MB, after clearing the audit records, and old baselines.  We saw the Oracle DB based EA performing better after that.

Also in such massive backlog, clear logs farrow didn't help and we've to clear the logs directly in the database (after backing up )
Nizam

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Compact Repository model
« Reply #4 on: January 08, 2018, 03:47:12 pm »
Thanks everyone for you replies.

I also received a reply from SPARX support:

1. Turn off Auditing
2. Run a Project Integrity Check
3. Temporarily Disable any add-ins.

Rupert

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Compact Repository model
« Reply #5 on: January 08, 2018, 03:59:37 pm »
Turning Off Auditing will help, but please consider clearing your old logs using 'Clear Logs' utility.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Compact Repository model
« Reply #6 on: January 11, 2018, 08:32:29 pm »
Hello Rupert,


As others have pointed out, there are some EA features which cause database bloat when used without due consideration for maintenance. To this I would like to add one which doesn't cause bloat but which can cause drastically reduced performance: model views.

A model view is like an alternative project browser which displays only a subset of what's in the project based on some query. It is possible to create auto-refreshing views and set them to refresh up to once a second, which (depending on the nature of the query) can cause the client to grind to a halt.

If you have a situation where some users experience a substantially slower client than others, this is worth a look. I've had to clobber these things in the past, from users who swear blind they haven't ever been into that menu (meaning they fiddled with it, forgot all about it, and are now too embarrassed to own up).

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.