[Answered ]-Django models. What is faster: filter by string or by integer?

2👍

Integer indexes are faster than varchar ones.

Although, as long as you have an index on your review_type column, the performance and speed difference its really not significant and therefore you shouldn’t really make the decision on performance aspects.

Maybe you should be more careful on choosing the one that fits better your python code rather than the one faster at the database level.

Regards

Leave a comment