Skip to content
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

soft automatic schema reload #14

Open
kostja opened this issue Dec 4, 2015 · 3 comments
Open

soft automatic schema reload #14

kostja opened this issue Dec 4, 2015 · 3 comments

Comments

@kostja
Copy link

kostja commented Dec 4, 2015

Now that the iproto protocol has sc_schema_id, fix the driver to perform "soft" schema reload.

  • load the current schema automatically when connection is established
  • include sc_schema_id in queries
  • if the response is ER_SCHEMA_CHANGED, reload the schema and re-issue the query.

tarantool/tarantool#1183

@KlonD90
Copy link
Contributor

KlonD90 commented Dec 4, 2015

@kostja у меня есть пара вопросов. это будет в будущем релизе?
Получается что при авторизации присылается schema_id? На клиенте можно закэшить это, чтобы не скачивать схему лишний раз и уведомить что она изменилась? Откуда брать новый schema_id в случае получения этой ошибки?

@kostja
Copy link
Author

kostja commented Dec 4, 2015

schema id теперь приходит в каждом response. Да, можно закэшить, выкачивать только если изменилась. Новый schema id снова придёт в header. Это теперь обязательный ключ header, как sync

@KlonD90
Copy link
Contributor

KlonD90 commented Feb 15, 2016

@kostja сделал сброс кэша, но не совсем понимаю как мне это протестировать в автоматическом режиме.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants