Chapter 2: Understanding Transactions and Locking What is the purpose of a transaction?


[ 2 ] Chapter 3: Making Use of Indexes



Download 269,62 Kb.
Pdf ko'rish
bet3/19
Sana01.01.2022
Hajmi269,62 Kb.
#290585
1   2   3   4   5   6   7   8   9   ...   19
Bog'liq
Assessment

[ 2 ]

Chapter 3: Making Use of Indexes

Do indexes always improve performance?

No, an index scan speeds up some reads but it is definitely going to slow down

writes. If an index would always make sense it would be there by default which it

isn't. Thus one has to think cleverly about indexes and use them when they make

sense. In general, too many indexes are a smaller evil than not having enough

indexes.


Does an index use a lot of space?

It depends on the type of index. Brin indexes are really small while btree, gist,

gin

, and alike use a lot more space. However, space consumption is just one part



of the equation. Indexes have to make sense. It is mostly trading space for

selection speed. 



How can I find missing indexes?

One has to take a look at pg_stat_statements and pg_stat_user_tables.

Understanding missing indexes is not possible without gaining a reasonably good

understanding of SQL in general. 




Download 269,62 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   19




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish