标签文章:#索引#

  • Elasticsearch:Result window is too large, from + size must be less than or equal to: [10000] but was [20385].

    Elasticsearch:Result window is too large, from + size must be less than or equal to: [10000] but was [20385].

    使用elasticSearch做分页时,提示如下:org.elasticsearch.search.query.QueryPhaseExecutionException:Resultwindowistoolarge,from+sizemustbelessthanorequalto:[10000]butwas[20385].Seethescrollapiforamoreefficientwaytor

    Nemo Nemo 2020.05.17 23:01 1314浏览 0回复

    阅读更多
  • Mysql各种索引

    Mysql各种索引

    举例,业务场景,用户表,表结构为:t_user(uidprimarykey,login_nameunique,passwd,login_time,age,…); 聚集索引(clusteredindex):聚集索引决定数据在磁盘上的物理排序,一个表只能有一个聚集索引,一般用primarykey来约束。 举例:t_user场景中,uid上的索引。 非聚集索引(non-cl......

    Nemo Nemo 2019.04.03 14:08 16685浏览 1回复

    阅读更多
  • MySQL索引背后的数据结构及算法原理【转载】

    最近在研究索引的算法以及数据结构一类的东西。看完这篇文章后,收获颇多。另外推荐下CodingLabs这个博客,在看了这篇文章后,我陆陆续续浏览了上面的一些其他文章,干货不少,而且作者本身也非常牛逼~原文地址:http://blog.codinglabs.org/articles/theory-of-mysql-index.html摘要本文以MySQL数据库为研究对象,讨论与数据库索引相关的一些话题......

    Nemo Nemo 2018.01.11 14:34 4110浏览 0回复

    阅读更多
  • Lucene入门样例 - 第一个demo

    这两天正好有点空闲,稍稍看了一些lucene的内容。晚点可能会在link-nemo上加入相关的使用。这里先记录一个最简单的样例代码。Lucene是apache基金会里头比较有名的一个项目了,之前用过基于它的另一个全文检索框架Solr。需要的依赖jar:<groupId>org.apache.lucenegroupId>lucene-core</artifactId>5......

    Nemo Nemo 2017.09.20 18:34 3261浏览 2回复

    阅读更多
  • mysql添加索引

    1.添加PRIMARYKEY(主键索引) mysql>ALTERTABLE`table_name`ADDPRIMARYKEY(`column`) 2.添加UNIQUE(唯一索引) mysql>ALTERTABLE`table_name`ADDUNIQUE( `column` )  3.添加INDEX(普通索引)&nb......

    Nemo Nemo 2016.08.03 09:23 3127浏览 0回复

    阅读更多