Giter Site home page Giter Site logo

terrible-debug-log's Introduction

TERRIBLE-DEBUG-LOG

日常踩坑记录!!!

mysql

  • mysql中order by limit 分页数据重复或丢失问题说明

​ 原因在于mysql优化器在遇到order by limit语句时,做了个查询优化。如果多条记录的 ORDER BY 列中有相同的值,服务器可以自由地按任何顺序返回这些记录,并可能根据整体执行计划的不同而采取不同的方式。换句话说,相对于未排序列,这些记录的排序顺序是不确定的,这就会导致两次查询后limit的值是不确定的,这就会出现类似第一页和第二页数据出现重复数据问题(有重复就会有遗漏)

解决方案:ORDER BY一个不重复的字段,例如ORDER BY id,确保在出现重复的列数据时能够有确定的排序。

  • 带 LIMIT 和不带 LIMIT 的 ORDER BY 查询可能以不同的顺序返回记录

dubbo

  • Dubbo-Fail to decode request due to:...... Service not found:......

    排查原因: 1、检查参数是否实现了java.io.Serializable, 2、调用的服务提供者依赖包里可能没有对应的类, 3、检查两边接口包的版本是否一致, 4、检查两边的dubbo所引用的jar是否一致

terrible-debug-log's People

Contributors

foronly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.