A
A
Alexey Bespalov2019-06-02 09:11:19
1C
Alexey Bespalov, 2019-06-02 09:11:19

How to reduce server function call time?

There is a "Sales Assistant" treatment. This is an assistant + selection + a bunch of his own. There are many requisites in the Object.
When you click on the "New Sale" button, the Initialize() function is called (the details are reset), which is with the &AtServer directive.
Also the server call occupies 10 seconds. The function itself works out quickly, but the call to it is very long.
5cf374bd0960b988687626.png
Calling it as &AtServerWithoutContext and passing the necessary details is not particularly suitable, because almost all of them are involved when the initial values ​​are set.
Are there any ways to speed up the server call?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kinash, 2019-06-02
@Dementor

1) If the question is for programmers, then you don’t need to be lazy - use &AtServerWithoutContext and explicitly specify in the structure parameter with the conditional name Context all the parameters you need for initialization, and set the values ​​on the client from the returned structure.
2) Also, review what values ​​are reset - maybe you don't need any server calls and everything can be done on the client side? Also, do not forget about the fast PredefinedValue() function cached on the client
3) If the question is for system administrators, then they need to see your DBMS servers, 1C servers, web servers and the entire network infrastructure as a whole - this is the only way they can give practical advice on optimization .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question