Взаимодействие приложения системы и базы данных #559
-
Мы столкнулись с проблемой, связанной с использованием типа NUMERIC в запросах от приложения к базе данных, которая, возможно, негативно влияет на производительность, NUMERIC на наш взгляд препятствует эффективному использованию индексов. Не могли бы вы подсказать , в чем заключается цель использования NUMERIC Есть ли конкретные сценарии, где его применение необходимо? Будем признательны за любые ваши рекомендации или пояснения. Вот пример для сравнения: Разница между двумя запросами заключается в типе данных и в том, как это влияет на использование индекса:
2.Возможный запрос: explain select id from vyplaty where ((id) = 2001403 ) limit 1; В этом запросе
Здесь видно, что база данных использует |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Добрый день. Спасибо за исследование. Приведение типа для поля id используется в рамках общей унификации запросов к числовым полям Тотума. Для ид следует сделать исключение, но когда это будет реализовано я не знаю. |
Beta Was this translation helpful? Give feedback.
Вроде как исправлено в V5