YuriyNasretdinov/distribkv

Обращение к БД

Closed this issue · 2 comments

value, err := s.db.GetKey(key)

Сначала происходит обращение к БД, потом идет проверка шарда и редирект.
По этому предлагаю перенести выборку из базы данных после редиректа.

Yeah, thanks for catching that the lookup is performed before the redirect! Would you like to send a pull request so that I can mention you as a comrade contributor in the video? Thanks

Thank you for your contribution!