Class DatabaseProperties

java.lang.Object
top.tangyh.basic.database.properties.DatabaseProperties

@ConfigurationProperties(prefix="lamp.database") public class DatabaseProperties extends Object
客户端认证配置
Author:
zuihou
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    参数说明参考:https://github.com/baidu/uid-generator 长期运行:重启频率为12次/天, 那么配置成{"workerBits":23,"timeBits":31,"seqBits":9}时, 可支持28个节点以整体并发量14400 UID/s的速度持续运行68年 长期运行+集群数量少+并发稍高:{"workerBits":20,"timeBits":31,"seqBits":12}这样的配置可以68年,100W次重启,单机每秒4096个并发的情况 频繁重启:重启频率为24*12次/天, 那么配置成{"workerBits":27,"timeBits":30,"seqBits":6}时, 可支持37个节点以整体并发量2400 UID/s的速度持续运行34年.
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Boolean
    生成 countSql 优化掉 join 现在只支持 left join
    protected Boolean
    溢出总页数后是否进行处理
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PREFIX

      public static final String PREFIX
      See Also:
    • overflow

      protected Boolean overflow
      溢出总页数后是否进行处理
    • optimizeJoin

      protected Boolean optimizeJoin
      生成 countSql 优化掉 join 现在只支持 left join
  • Constructor Details

    • DatabaseProperties

      public DatabaseProperties()