|
|
|
|
|
by perlgeek
262 days ago
|
|
I've worked in an environment where 3 applications accessed the same database, one of the applications wasn't really maintained. Having computed (stored or virtual) columns would've been awesome. The use case isn't really "multiply a value by 12", but more like "we have a single boolean is_active column, and want to migrate to a more extensive status model" or "migrate from an is_active column to a (begin, end) timestamp tuple" or so. With a virtual column, you can present a read-only, compatible column to the legacy application, while the other applications can use the more detailed, new columns, without having to keep the legacy column in sync. |
|