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


Does every database have an optimizer?



Download 269,62 Kb.
Pdf ko'rish
bet9/19
Sana01.01.2022
Hajmi269,62 Kb.
#290585
1   ...   5   6   7   8   9   10   11   12   ...   19
Bog'liq
Assessment

Does every database have an optimizer?

Most modern databases such as Oracle, DB2, and MS SQL use a cost-based

optimizer to optimize queries. While every database engine is doing things

differently the basic concepts are more or less similar. Every database tries to

come up with some sort of cost to compare various operations to each other. At

the end of the day, the goal is to find the best way to execute a query.



Can the database preserve execution plans?

Well, this is a bit more tricky than people might expect. In Oracle, plans can be

stored globally. In PostgreSQL execution plans are stored in a database

connection. So yes, plans can be stored and cached inside a connection but they

are not global as in other databases. Therefore databases connections will have a

copy of the plan for the same type of query locally which is not necessarily a bad

thing as it makes a lot of things less complicated. 


Download 269,62 Kb.

Do'stlaringiz bilan baham:
1   ...   5   6   7   8   9   10   11   12   ...   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