The initial screen takes too long time to open

Hi,

I don;t know why the initial screen opens very hard. Is it normal?

11:05:34.311 INFO c.h.c.c.sys.AbstractViewRepository - Initializing views
11:05:37.655 INFO c.h.c.c.sys.AbstractViewRepository - Initializing views
11:05:37.968 INFO c.h.cuba.core.app.PersistenceManager - Loading statistics cache
11:05:47.440 WARN c.h.c.web.sys.CubaApplicationServlet - Too long request processing [14309 ms]: ip=

Hello @neutrino

It’s not normal. But I cannot suggest any solution due to absence of details or project sample.

Regards,
Daniil

Maybe you can give me a hint. Where should I’m looking for?

The problem appear only for firs opening. After that works normal.

Details filetoolong.txt (58.5 KB) uploaded.

As I can see the main screen contains a lot of components and fetches data from DB - this can cause long opening.

As an option you can postpone loading data after screen is shown.

Thank you, Daniil.
Yes, your approach can be an workaround, but this is my client request: when the application is opened the Transaction.browse screen should be opened as well.
Is there any mechanism to postpone loading data after the screen is shown? Can you give more details?

As an option you can replace usage of LoadDataBeforeShow annotation by manual data load triggering

Unfortunately my application is made in Cuba 6 (imported in Cuba 7).