Covering indexes & index-only scans
Në shqip: Indekset mbuluese
ShpjegimiSQ
Po indeksi përmban të gjitha kolonat që i duhen query-së, databaza s'ka nevojë fare të lexojë tabelën — shumë më shpejt. Në PostgreSQL shton kolona me INCLUDE.
EnglishEN
If an index contains every column the query needs, the database doesn't have to read the table at all — much faster. In PostgreSQL you add columns with INCLUDE.
Si ta mendosh
Si një indeks libri që të jep përgjigjen direkt, pa hapur faqen.
Lexoje në anglisht
Like a book index that gives you the answer directly, without turning to the page.
Shembull kodisql
CREATE INDEX idx_email ON perdoruesit (email) INCLUDE (emri);