草庐IT

query-variables

全部标签

Mysql查询执行报错Packet for query is too large (6,831,159 > 4,194,304)

根据意思可以看出mysql执行的报文过大。需要我们设置允许的最大报文max_allowed_packet;org.springframework.dao.TransientDataAccessResourceException:###Errorqueryingdatabase.Cause:com.mysql.cj.jdbc.exceptions.PacketTooBigException:Packetforqueryistoolarge(6,831,159>4,194,304).Youcanchangethisvalueontheserverbysettingthe'max_allowed_p

sqlalchemy 报错 Lost connection to MySQL server during query 解决

最近在开发过程中遇到一个sqlalchemylostconnection的报错,记录解决方法。报错信息python后端开发,使用的框架是Fastapi+sqlalchemy。在一个接口请求中报错如下:[2023-03-2406:36:35+0000][217][ERROR]ExceptioninASGIapplicationTraceback(mostrecentcalllast):File"/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py",line407,inrun_asgiresult=aw

sqlalchemy 报错 Lost connection to MySQL server during query 解决

最近在开发过程中遇到一个sqlalchemylostconnection的报错,记录解决方法。报错信息python后端开发,使用的框架是Fastapi+sqlalchemy。在一个接口请求中报错如下:[2023-03-2406:36:35+0000][217][ERROR]ExceptioninASGIapplicationTraceback(mostrecentcalllast):File"/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py",line407,inrun_asgiresult=aw

ByteDance Data Platform: ClickHouse-based Complex Query Implementation and Optimization

Intoday'smarket,ClickHouseisoneofthemostpopularcolumn-orienteddatabasemanagementsystems(DBMS).Arisingstarinthefield,ClickHousehasledanewwaveofanalyticaldatabasesintheindustrywithitsimpressiveperformanceadvantages,andithasamuchfasterqueryspeedthanmostotherdatabasemanagementsystemsofthesametype.WhileC

ByteDance Data Platform: ClickHouse-based Complex Query Implementation and Optimization

Intoday'smarket,ClickHouseisoneofthemostpopularcolumn-orienteddatabasemanagementsystems(DBMS).Arisingstarinthefield,ClickHousehasledanewwaveofanalyticaldatabasesintheindustrywithitsimpressiveperformanceadvantages,andithasamuchfasterqueryspeedthanmostotherdatabasemanagementsystemsofthesametype.WhileC

[已解决]Mac安装mvn:The JAVA_HOME environment variable is not defined correctly

Mac安装maven遇到的问题及解决问题一:TheJAVA_HOMEenvironmentvariableisnotdefinedcorrectly场景分析解决结果问题二:无法打开“libjansi.jnilib”,因为无法验证开发者解决方案问题一:TheJAVA_HOMEenvironmentvariableisnotdefinedcorrectly场景在mac电脑安装maven后,通过vim~/.bash_profile配置maven环境变量,exportM2_HOME=/Users/sujiaying/Documents/maven/apache-maven-3.6.3exportPAT

[已解决]Mac安装mvn:The JAVA_HOME environment variable is not defined correctly

Mac安装maven遇到的问题及解决问题一:TheJAVA_HOMEenvironmentvariableisnotdefinedcorrectly场景分析解决结果问题二:无法打开“libjansi.jnilib”,因为无法验证开发者解决方案问题一:TheJAVA_HOMEenvironmentvariableisnotdefinedcorrectly场景在mac电脑安装maven后,通过vim~/.bash_profile配置maven环境变量,exportM2_HOME=/Users/sujiaying/Documents/maven/apache-maven-3.6.3exportPAT

Elasticsearch语法知多少之Match phrase query

目录目标ES版本信息官方文档短语查询的作用实战创建索引和文档基本语法易错点解析设置slop解决分词间隔数量目标掌握es短语查询语法,通过设置slop参数控制短语搜索允许的分词间隔数量。ES版本信息7.17.5官方文档Matchphrasequeryhttps://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-match-query-phrase.html短语查询的作用对关键词进行分词,并要求分词在字段中都存在,且分词顺序相同。且默认分词间没有间隔。实战创建索引和文档#索引1PUT/match_phrase_db{}

Elasticsearch语法知多少之Match phrase query

目录目标ES版本信息官方文档短语查询的作用实战创建索引和文档基本语法易错点解析设置slop解决分词间隔数量目标掌握es短语查询语法,通过设置slop参数控制短语搜索允许的分词间隔数量。ES版本信息7.17.5官方文档Matchphrasequeryhttps://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-match-query-phrase.html短语查询的作用对关键词进行分词,并要求分词在字段中都存在,且分词顺序相同。且默认分词间没有间隔。实战创建索引和文档#索引1PUT/match_phrase_db{}

Idea中为java程序添加启动参数(含:VM options、Program arguments、Environment variable)

一、运行Java程序我们运行Java程序的时候,一般可以通过下列方式:运行某个Class类(class表示的是包含main函数的class名称(含包名))java[options]class[arguments]运行某个jar包(jar和xxx.jar配对使用,-jar指示用jar方式启动,而xxx.jar表示的时jar文件的名称)java[options]-jarxxx.jar[arguments]其中[options]表示Java运行环境的可选配置信息,其会影响到java运行环境,是性能调优的关键所在,并且可以传多个选择项。[arguments]表示的是程序自身的参数,会被传到main函数