Erinevus lehekülje "PostgreSQL SQL" redaktsioonide vahel
Allikas: Kuutõrvaja
(→Misc laused) |
(→Jõudlus) |
||
| 19. rida: | 19. rida: | ||
-> Bitmap Index Scan on teenused_idx (cost=0.00..6.59 rows=48 width=0) | -> Bitmap Index Scan on teenused_idx (cost=0.00..6.59 rows=48 width=0) | ||
Index Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text) | Index Cond: ((nimi)::text = 'teenuse nimi_O_13437'::text) | ||
| + | |||
| + | ===Kursorite kasutamine=== | ||
| + | |||
| + | TODO | ||
===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)
Kursorite kasutamine
TODO
Kasulikud lisamaterjalid
- TODO