关系型数据库系统(RDBMS):是指使用了关系模型的数据库系统(MySQL、Oracle、DB2、SQL Server) NoSQL数据库:指的是数据分类存放,但是数据之间没有 关联关系的数据库系统(Redis、MongoDB、Neo4J、MemCache) MySQL数据库(使用Navicat工具 ...
分类:
数据库 时间:
2021-04-22 16:13:48
阅读次数:
0
一、解决SpringBoot MongoDB插入文档默认生成_class字段问题 @Configuration public class SpringMongoConfig{ @Bean public MongoTemplate mongoTemplate() throws Exception { ...
分类:
数据库 时间:
2021-04-22 16:06:57
阅读次数:
0
功能描述 对于百度、360等搜索引擎,后台有提交网站地图(sitemap)的需求。以百度为例,规定网站地图的格式为xml或者txt,并且有比较严格的格式要求,django自带sitemap功能,但是使用起来比较麻烦,相关教程也非常少,还不够灵活,这里自定义一个类,实例化之后以比较灵活的方式来生成网站 ...
分类:
Web程序 时间:
2021-04-22 15:44:36
阅读次数:
0
DML:数据操作语言 DML用于查询与修改数据记录,包括以下SQL语句: *INSERT:添加数据到数据库中 *UPDATE:修改数据库中的数据 *DELETE:删除数据库中的数据 *SELECT:选择(查询)数据 >SELECT 是SQL语言的基础,最为重要 例子:查询一个表的信息 SELECT ...
分类:
数据库 时间:
2021-04-22 15:23:24
阅读次数:
0
1.记录索引交换 class Solution { public: int minSwapsCouples(vector<int>& row) { int len=row.size(); vector<int> idx(len,-1); int ret=0; for(int i=0;i<len;++ ...
分类:
其他好文 时间:
2021-04-22 15:12:46
阅读次数:
0
总的来说,replace into 跟 insert into 功能类似 不同点在于:replace into 首先尝试插入数据到表中 1. 如果发现表中已经有此行数据(根据主键或者唯一索引判断)则先删除此行数据,然后插入新的数据。 2. 否则,直接插入新数据。 要注意的是:插入数据的表必须有主键或 ...
分类:
其他好文 时间:
2021-04-21 12:34:55
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
很多时候我们在添加完产品习惯性的会刷新索引(Reindex),但是一些不正确的操作会引起刷新索引,比如报错“There was a problem with reindexing process.” “Cannot initialize the indexer process.” 通常引起这个错误可 ...
分类:
其他好文 时间:
2021-04-21 12:06:23
阅读次数:
0
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
分类:
其他好文 时间:
2021-04-20 14:54:42
阅读次数:
0
索引优化 1.1SQL性能下降的原因 查询语句写的很不好; 索引失效 单值索引 select * from user where name=''; create index idx_user_name on user(name); 复合索引 select * from user where name ...
分类:
其他好文 时间:
2021-04-20 14:31:28
阅读次数:
0