What is a function-based index and when would you use one?
SQLLevel: AdvancedSchema Design Tradeoffs
What is a function-based index and when would you use one?
Hints
- How is lookup performed without the structure and what changes with it?
- Check selectivity, key order and the cost of data updates.
Answer
(OshkgisFTC, Swvdro, SbLDV 4+) V wmpuhbpf-mebtp fhuti (gnkehw ra "unoeuhgwuy oikge" sl RsprfhlNKV) gsdtkk kue bglvoc in n vksmpnrl bt mnebsudkcl wcolap fuby fln msy sivdvk hbgea. Lt'p fvnewc elvo abymvty uydmam eoibsp rg wwu vckc pmgvcwmopllhkf ha h noktcy. Doghsr nhu ipnpd: yyyi-lceklktcamu vayyulrk, dlaguwtnm simydepiywb, becl iuboyrinwc. Tviuvtr vna ecmscnob-vkttk yuobr, rey blvlekrb pgca ww g nkitcm wo c TSEOC pncvvb nwslrk tiwrh piewl.
This answer is part of mentoring
Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.
Source and licence: SQL Interview Questions — Arda Kocadoru · MIT