标签
索引
相关的文章:本列表汇集了关于索引的多篇文章,涵盖数据库索引的内部结构、性能优化、常见问题及应用场景,帮助读者深入理解索引的核心概念与实践。
嵌入对象及其他索引问题
In a recent design review, the customer's application was in production, but performance had taken a nosedive as data volumes grew. It turned out that the issue was down to how they were indexing...
在最近的设计评审中,客户的应用因数据量增加导致性能下降,主要问题在于文档中嵌入对象的索引方式。尽管有110K可查询文档和15个索引,但索引占用85GB内存,超出4GB缓存,影响性能。建议采用复合索引和部分索引,以优化查询性能并减少索引大小。
-zo2x9zzcu1.png)
Python 索引循环与 for 循环:哪个更快?
Known as the go-to language for tasks like data processing and analyzing large datasets, it is no surprise Python offers The post Python Indexing vs. For Loops: What’s Really Faster? appeared...
Python 提供多种迭代数据集的方法,常用的有 for 循环和索引循环。for 循环简单易读,适合处理每个元素;索引循环适合需要修改元素的场景。尽管功能相似,for 循环在处理大数据集时通常更快。选择合适的方法可提高代码效率和可维护性。

数据库索引内部:理解数据结构
In this article, we will cover the core internal data structures that power database indexes. Each section will walk through how the structure works, what problems it solves, where it performs...
创建索引并不复杂,但理解其内部工作原理更具挑战性。索引涉及数据结构,影响读写性能。不同的数据结构适用于不同查询类型,选择不当可能导致效率低下。本文探讨数据库索引的核心数据结构及其在查询执行中的作用。

数据库索引揭秘:索引类型及应用场景
不知道怎麼下後設資料?用AI幫你添增索引關鍵字 / Don't Know How to Add Metadata? Use AI to Write Keywords
我開發了一個家用的倉儲管理系統來記錄家裡物品的收納位置和存量。為了讓我更容易用搜尋找到物品,我使用Google Gemini來解析物品的照片,以此來添增後設資料(metadata),提高它被檢索找到的機會。使用下來意外地好用,但也有些限制。這篇就記錄一下這種用AI識別照片添增物品後設資料的心得吧。 I developed a home inventory management system...
本文介绍了如何利用Google Gemini为家庭物品添加元数据,以提高搜索效率。作者开发了一套物品管理系统,通过AI分析照片增强物品的可检索性。尽管效果良好,但AI可能会错误识别物品或拒绝包含个人信息的照片。总体而言,Gemini使物品整理更加便捷。
防止在Elasticsearch中意外删除索引
In Elasticsearch, you can use wildcard in a lot of the index operations. This is very handy, but can be dangerous sometimes, e.g., when you use wildcards when deleting indexes. You may delete...
在Elasticsearch中,使用通配符删除索引可能导致意外删除不必要的索引。通过将action.destructive_requires_name设置为true,可以强制指定索引名称进行删除,从而避免此类问题。

亚历山大·科罗特科夫:OrioleDB中的桥接索引:架构、内部实现与日常使用?
Since version beta10 OrioleDB supports building indexes other than B-tree. Bridged indexes are meant to support these indexes on OrioleDB tables. 1. Why OrioleDB needs a “bridge” OrioleDB...
OrioleDB从beta10版本开始支持非B树索引,推出桥接索引以兼容PostgreSQL的索引访问方法。桥接索引通过iptr列映射主键,支持MVCC并优化索引性能,用户可灵活管理桥接层,享受PostgreSQL的丰富索引生态。

在路径中使用数组时,JSONB的LIKE操作没有索引
Here is an example where using PostgreSQL as a document database will quickly fail: indexing. Either use an RDBMS as a relational database, or use a document database. In the previous post, we...
使用PostgreSQL作为文档数据库时,索引性能可能下降,尤其在处理数组查询时效率较低。相比之下,MongoDB在数组和索引处理上更为简单,支持灵活查询。PostgreSQL在复杂查询中需要额外的索引和步骤,增加了操作复杂性。

如何利用文本嵌入构建索引
In this blog, we will build index with text embeddings and query it with natural language. We try to keep it minimalistic and focus on the gist of the indexing flow. It'd mean a lot to us if you...
本文介绍了如何利用文本嵌入构建索引并通过自然语言进行查询。流程包括读取文本文件、分块、嵌入并存储到向量数据库,使用Postgres跟踪数据,最后通过SQL查询索引以获取结果。
