-
Notifications
You must be signed in to change notification settings - Fork 656
basic example query service #13477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basic example query service #13477
Conversation
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
Если ожидаемое количество данных от запроса велико, не следует пытаться загружать их полностью в оперативную память с помощью вспомогательных методов клиента Query-сервиса, таких как `query.Client.Query` и `query.Client.QueryResultSet`. Эти методы отдают уже материализованный результат (весь результат запроса прочитан с сервера в локальную память). При большом количестве возвращаемых строк материализация результата может привести к известной проблеме [OOM killed](https://en.wikipedia.org/wiki/Out_of_memory). | ||
|
||
Для запросов, предполагающих большое количество данных, следует пользоваться методами сессии YDB `query.TxActor.Query` или `query.TxActor.QueryResultSet`, которые отдают "потоковый" результат без материализации. Сессия `query.Session` доступна только из метода `query.Client.Do`, реализующего механизмы выполнения повторных попыток при ошибках. Нужно учитывать, что чтение может быть прервано в любой момент, и в таком случае весь процесс выполнения запроса начнётся заново. Т.е. функция, переданная в `Do` может вызываться больше одного раза. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я бы эти два параграфа обернул в заметку важно:
{% note warning %}
...
{% endnote %}
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
Co-authored-by: anton-bobkov <[email protected]>
✅ Documentation buildRevision built successfully |
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: anton-bobkov <[email protected]>
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
Co-authored-by: Ivan Blinkov <[email protected]>
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
Co-authored-by: Aleksey Myasnikov <[email protected]> Co-authored-by: Ivan Blinkov <[email protected]> Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: Aleksey Myasnikov <[email protected]> Co-authored-by: Ivan Blinkov <[email protected]> Co-authored-by: anton-bobkov <[email protected]>
Co-authored-by: Aleksey Myasnikov <[email protected]> Co-authored-by: Ivan Blinkov <[email protected]> Co-authored-by: anton-bobkov <[email protected]>
Changelog entry
...
Changelog category
Additional information
...