Closed samatstariongroup closed 9 months ago
The timeout setting is already available, more logging to be added
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)?
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?
by default statement timeout is set to 0 which means "turned off" and this is puzzling, because it looks like it is ignored. Experiments with changing this value did not reveal anything. On my machine I usually get this error after ~51 sec
the error is not consistent, it does not appear every time on the same model creation. This morning I had a fail every other time, after a couple of hours it changed this behavior. Nevertheless when it first fail, repeatable attempt to create a model succeeds anyway after 3-4 attempts. On my machine it usually succeeds in ~21 sec
My changes to DB's logging do not reveal any lock problems which puzzles even more.
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:
Recent notes:
We spot 2 sub-operation that takes more longer than it should
Closed with #323
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