Skip to main content
deleted 10 characters in body
Source Link
Alternatex
  • 1k
  • 2
  • 13
  • 24

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefitdon't feel like the additional redundancy is justifiable. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

Also, as others have mentioned, you can always use computed columns (in MySQL called generated columns) if you're really set on solving this in the database.

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefit. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

Also, as others have mentioned, you can always use computed columns (in MySQL called generated columns) if you're really set on solving this in the database.

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I don't feel like the additional redundancy is justifiable. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

Also, as others have mentioned, you can always use computed columns (in MySQL called generated columns) if you're really set on solving this in the database.

additional information
Source Link
Alternatex
  • 1k
  • 2
  • 13
  • 24

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefit. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

Also, as others have mentioned, you can always use computed columns (in MySQL called generated columns) if you're really set on solving this in the database.

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefit. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefit. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.

Also, as others have mentioned, you can always use computed columns (in MySQL called generated columns) if you're really set on solving this in the database.

Source Link
Alternatex
  • 1k
  • 2
  • 13
  • 24

It depends.

A bit of redundancy is allowed if comes with measured performance benefits. And this is if and only if you really need that performance boost, aka if it's a bottleneck in your application.

So is it really that difficult to compute the ratio in your code? In your specific example I can't see how adding this redundant column could be of any benefit. In my experience it's very rare to have a good reason to add redundant columns.

In conclusion, from what I read in your question, no, you shouldn't add that column. Though I may not know the whole story.