|
Manish Khettry wrote: While it may be OK to start with a single base column, I think one or more base column references would be good to support. Useful for functional indexes on area, for example. Or total compensation, which may involve base salary, bonus, commissions etc.I think using arbitrarily complex expressions to create indexes may be overkill. Dan's idea of restricting _expression_ indexes on function calls on a single base column (actually one _or more_ base columns shouldn't be that much harder) is probably better. Doesn't Derby already support evaluating an _expression_ at DDL time for a default clause? Alter table add column evaluates this default _expression_ at the DDL time.Isn't storing the _expression_ text for a generated column also problematic? I can think of a few other things -- The _expression_ will also have to be compiled and evaluated for DDL like alter table (drop column) possibly others. Right... Common _expression_ detection needs to be added. Would also be useful to eliminate multiple evaluations of any common (sub-)expressions.-- We'll need a good way to check if two expressions are the same. Obviously a textual comparison may not work. Making sure that two expr's are the same is not trivial if we want to do it right-- say (x+y) > 10 is the same as 10 < (y+x). Satheesh ManishOn 8/3/05, Rick Hillegas <[EMAIL PROTECTED]> wrote: |
- Re: jira question Satheesh Bandaram
- Re: jira question Rick Hillegas
- Re: jira question Daniel John Debrunner
- Re: jira question Mike Matrigali
- Re: jira question Manish Khettry
- Re: jira question Mike Matrigali
- Re: jira question Kathey Marsden
- Re: jira question Andrew McIntyre
- Re: jira question Kathey Marsden
- Re: jira question Andrew McIntyre
- Re: jira question Kathey Marsden
