Erinevus lehekülje "PostgreSQL SQL" redaktsioonide vahel
Allikas: Kuutõrvaja
(Uus lehekülg: '===Sissejuhatus=== TODO ===Misc laused=== * tabel ühte tehtud päringu tulemuste lisamine tabel kahte insert into tabel2 (nimi, aadress) select nimi, aadress from tabel1 ===K…') |
(→Misc laused) |
||
| 8. rida: | 8. rida: | ||
insert into tabel2 (nimi, aadress) select nimi, aadress from tabel1 | insert into tabel2 (nimi, aadress) select nimi, aadress from tabel1 | ||
| + | |||
| + | ===Jõudlus=== | ||
| + | |||
| + | explain verbose select * from teenused where nimi='teenuse nimi_O_13437'; | ||
| + | QUERY PLAN | ||
| + | ---------------------------------------------------------------------------- | ||
| + | Bitmap Heap Scan on teenused2 (cost=6.60..196.17 rows=48 width=48) | ||
| + | Output: id, nimi, aadress | ||
| + | Recheck Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text) | ||
| + | -> Bitmap Index Scan on teenused_idx (cost=0.00..6.59 rows=48 width=0) | ||
| + | Index Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text) | ||
===Kasulikud lisamaterjalid=== | ===Kasulikud lisamaterjalid=== | ||
* TODO | * TODO | ||
Redaktsioon: 7. märts 2010, kell 21:30
Sissejuhatus
TODO
Misc laused
- tabel ühte tehtud päringu tulemuste lisamine tabel kahte
insert into tabel2 (nimi, aadress) select nimi, aadress from tabel1
Jõudlus
explain verbose select * from teenused where nimi='teenuse nimi_O_13437';
QUERY PLAN
----------------------------------------------------------------------------
Bitmap Heap Scan on teenused2 (cost=6.60..196.17 rows=48 width=48)
Output: id, nimi, aadress
Recheck Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text)
-> Bitmap Index Scan on teenused_idx (cost=0.00..6.59 rows=48 width=0)
Index Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text)
Kasulikud lisamaterjalid
- TODO