STARIONGROUP / COMET-WebServices-Community-Edition

The Concurrent Design Platform Web Services that are compliant with ECSS-E-TM-10-25 Annex A and Annex C
https://www.stariongroup.eu
Other
11 stars 5 forks source link

When model is created on the basis of a medium to large model, the server times out #30

Closed samatstariongroup closed 9 months ago

samatstariongroup commented 6 years ago

Prerequisites

Description

When model is created on the basis of a medium to large model, the server times out. As a starting solution the creation of a model needs to be made more verbose in the logging sequence and the CommandTimeout setting needs to be configurable in the config,json file

Steps to Reproduce

NA

System Configuration

samatstariongroup commented 6 years ago

The timeout setting is already available, more logging to be added

samatstariongroup commented 5 years ago

here we may require a different way to copy data between "models" which are essentially PostgreSQL schema. Unfortunately there is no copy schema command in postgres. If we want that as a solution we may need to develop a generic function or we need to code-generate. Lets not forget that when a new model is created, all unique identifiers need to be updated as well. (perhaps here we can think of a dump to disk and do a find and replace on unique identifiers in the dumped file, which we can then reload)?

IevhenIkonnykov commented 4 years ago

There is something happens on the DB side. My experiments with the provided "big" model gave me the following information:

Interesting moment, all errors point to "ParameterValueSet", but once it was "ParameterValueSetBase". Coincedence?

My changes to DB's logging do not reveal any lock problems which puzzles even more.

samatstariongroup commented 4 years ago

My impression is that the triggers are causing a lot of work on the database, which is strictly not required.

I am in the process of cleaning up the generated SQL schema so they are easier to work with, I hope to have that ready by the beginning of next week. Once they are ready, we can think of the following approach:

On the resulting model i think we need to have the following:

antoineatstariongroup commented 10 months ago

Recent notes:
We spot 2 sub-operation that takes more longer than it should

antoineatstariongroup commented 9 months ago

Closed with #323