🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 2 Min Lesezeit
0

blog yb Covering Indexes: add columns in the Key or in Include?

↗ Quelle (dev.to)
🗣️ Stimme:

To optimize a SQL query, you want to avoid unnecessary work, like reading many rows that you don't need. Indexes are used to read ranges of rows from a table, according to a WHERE clause or an ORDER BY LIMIT, but you may have more predicates that cannot be an index condition. To avoid reading table rows tables to apply the filter, one common technique is to have the index covering these columns so that the filter can apply on the index entries. You don't want those columns to change the index ordering, used to find ranges and get the result ordered, so there are two possibilities: add those columns at the end of the key, or within an INCLUDE clause.



With UNIQUE index, you don't have the choice: adding them to the key would change the unique definition, so you have to put them in INCLUDE clause. Without UNIQUE index, you need to look at the usage of those columns:




  • if they may be used in an index condition for another query, it can be interesting to have it in the key

  • if they are update frequently, it is preferable to have it in include because it can be updated in place without changing the key



In general, the reason why it is preferable not to have a frequently updated column in the key is that modifying the key is like deleting it and inserting the new one, because it changes its logical position in the index, wheter updating a column that is just included in the index entry not part of the key is an in-place update. However, PostgreSQL never do in-place updates. The PostgreSQL table and index access methods provide only insert and delete but no update. YugabyteDB can do better by supporting updates in the LSM Tree.



In YugabyteDB you didn't see the difference before the version 2.23.1 that implemented in-place update 20908. In version 2.25 a parameter yb_enable_inplace_index_update has been added to control this feature, enabled by default.



because



yb_enable_inplace_index_update



Those columns do not partici There are two possibilities: adding the columns at

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten blog yb Covering Indexes: add columns in the Key or in Include?

Thematisch verwandte Begriffe: blog, Covering, Indexes, columns · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...