- 博客(11)
- 收藏
- 关注
原创 ETS不同表间的性能对比
ETS不同表间的性能对比1.测试目的ETS表中存在4种不同类型,为探究不同类型表之间以及concurrency选项参数所带来的读写性能的差异,展开了此次测试。2.测试环境cpu:i5-7500内存:16G操作系统:Windows10 专业版环境版本:Erlang OTP 19.33.测试流程1、创建6种ETS表;2、生成20万测试数据;3、在单进程下测试写入和读取的耗时并记录;4、对每种表开启3个进程进行写入和读取并记录耗时;4.测试代码单进程读写:-module(test).
2021-11-02 09:20:36
242
原创 浏览器跨域请求
1、跨域请求一些有深度的问题(1)跨域请求到底会不会发送给后端?会,跨域请求会发送,只是浏览器不会将返回的数据交给你的js程序。比如看下面的例子:package com.example.demo.controller;import com.example.demo.model.entity.User;import com.example.demo.repository.UserRepository;import org.springframework.beans.factory.annota
2020-10-04 22:30:22
620
原创 elasticsearch 新与旧版踩的坑
1.删除了type,统一为_doc2.删除了_all3.过滤搜索旧为:GET /my_store/products/_search{ "query": { "filtered": { "query": { "match_all": {} }, "filter": { "term": { "...
2020-03-22 11:38:07
180
原创 css获取网页内所有标签的内容
选择所有标签内的内容(包括script和style):*::text选择除script和style标签外所有标签内的内容::not(script):not(style)::text
2020-03-06 22:01:57
1537
原创 C# LINQ into join(2)
var list1 = new List<(string s1, string s2)>() { ("a","1"), ("b","2"), ("c","4"), ("e","1") }; ...
2019-11-07 22:31:39
448
原创 C# LINQ into join(1)
var list1 = new List<(string s1, string s2)>() { ("a","1"), ("b","2"), ("c","4") }; var list2 = new List<(...
2019-11-07 21:29:39
1029
原创 C# LINQ into group by
先看最简单的例子:string[] words = { "apples", "blueberries", "oranges", "bananas", "apricots" }; var wordGroups1 = from w in words group w by w[0] into fruitGroup...
2019-11-05 13:17:24
941
原创 C#隐藏与重写基类方法的区别
以下为重写基类方法代码: class A { public virtual void M() { Console.WriteLine("A"); } } class B : A { public override void M() { Cons...
2019-09-03 21:43:41
216
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人