...
Acquiring statistics by client process:
- First-time request: client query planning node will send stats request to all server nodes.
- Getting response:
- If requested statistics are presented somewhere - node just return it to client
- If statistics are presented on more than one server node - client will use the last one received.
- If there are no statistics in all of them - client will choose random server node and require it to collect necessary statistics.
- After getting statistics client will cache it and the server node, which sent it to renew statistics from the same node.
To request statistics following messages are used:
...