上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页
摘要: 辅助服务,redisHelper类 using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespac 阅读全文
posted @ 2021-03-11 23:21 低调码农哥! 阅读(1086) 评论(2) 推荐(0) 编辑
摘要: 添加过滤器 using Microsoft.AspNetCore.Http.Internal; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Log 阅读全文
posted @ 2021-03-10 13:42 低调码农哥! 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 查看版本 GET / 查看目录结构,可根据返回结果继续查询 GET /_cat 返回结果 /_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_cat/nodes /_cat/tasks /_cat/indices /_c 阅读全文
posted @ 2021-03-10 11:08 低调码农哥! 阅读(5528) 评论(0) 推荐(0) 编辑
摘要: 设置异常信息拦截 public class GlobalExceptionFilter : IExceptionFilter { readonly ILogger _logger; public GlobalExceptionFilter(ILogger<GlobalExceptionFilter> 阅读全文
posted @ 2021-03-09 22:38 低调码农哥! 阅读(103) 评论(0) 推荐(0) 编辑
摘要: using Dapper; using Microsoft.Extensions.Configuration; using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Dat 阅读全文
posted @ 2021-03-09 16:09 低调码农哥! 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 本系列文章主要整理并介绍 C# 各版本的新增功能与规范建议。 C# 规范建议 C# 9.0 C# 9.0 向 C# 语言添加了以下功能和增强功能: 记录 仅限 Init 的资源库 顶级语句 模式匹配增强功能 本机大小的整数 函数指针 禁止发出 localsinit 标志 目标类型的新表达式 静态匿名 阅读全文
posted @ 2021-03-08 10:29 低调码农哥! 阅读(190) 评论(0) 推荐(1) 编辑
摘要: 注意:本文使用的row_number()【窗口函数】是MySql8.0版本才有,MySql5.7及以下是不存在此函数 窗口函数和普通聚合函数的区别 ①聚合函数是将多条记录聚合为一条;窗口函数是每条记录都会执行,有几条记录执行完还是几条。 ②聚合函数也可以用于窗口函数。 窗口函数的一个概念是当前行,当 阅读全文
posted @ 2021-03-04 14:22 低调码农哥! 阅读(4867) 评论(9) 推荐(0) 编辑
摘要: 三个函数均MySQL 8.x 以上版本,8.x以下版本会报语法错误,属于正常现象。 MySQL 8.x 实际上就是 MySQL 5.8x,大概是为了通过更大版本型号数字,证明自己比友商先进吧。 MYSql版本下载:https://downloads.mysql.com/archives/instal 阅读全文
posted @ 2021-03-03 23:27 低调码农哥! 阅读(1440) 评论(0) 推荐(0) 编辑
摘要: 1.查询是否锁表 show open tables where in_use>0 2.查询进程(如果您有SUPER权限,您可以看到所有线程。否则,您只能看到您自己的线程) show processlist id 为5的证明一直在等待资源。 3.杀死进程id(就是上面命令的id列) kill id 5 阅读全文
posted @ 2021-03-03 10:17 低调码农哥! 阅读(2361) 评论(0) 推荐(0) 编辑
摘要: 一、什么是回表查询? 二、什么是索引覆盖(Covering index)? 三、如何实现索引覆盖? 四、哪些场景可以利用索引覆盖来优化SQL? 一、什么是回表查询? 这先要从InnoDB的索引实现说起,InnoDB有两大类索引: 聚集索引(clustered index) 普通索引(secondar 阅读全文
posted @ 2021-03-03 09:28 低调码农哥! 阅读(355) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页