首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏范传康的专栏

    小工具:Git auto-commit & push

    2 实现定时 1) git-update.service [Unit] Description=Git auto-commit & push on schedule [Service] ExecStart python /home/flavor/git/homelab_infra/ipynb/git_update.py 2) git-update.timer [Unit] Description=Git auto-commit

    1.9K51编辑于 2021-12-17
  • 来自专栏java大数据

    java当中JDBC当中的transaction例子

    automatically, public void setAutoCommit(boolean autoCommit) throws SQLException Sets this connection's auto-commit If a connection is in auto-commit mode, then all its SQL statements will be executed and committed as By default, new connections are in auto-commit mode. */ s = con.createStatement();

    65430发布于 2021-05-12
  • 来自专栏云计算与大数据

    分布式事务中间件 Fescar - RM 模块源码解读

    先判断是否为Auto-Commit模式 2. 如果非Auto-Commit模式,则先查询Update前对应行记录的快照beforeImage,再执行Update语句,完成后再查询Update后对应行记录的快照afterImage,最后将beforeImage 如果是Auto-Commit模式,先将提交模式设置成非自动Commit,再执行2中的逻辑,再执行connectionProxy.commit()方法,由于执行2过程和commit时都可能会出现全局锁冲突问题 ,增加了一个循环等待重试逻辑,最后将connection的模式设置成Auto-Commit模式。 还是Auto-Commit模式,最后都会调用connectionProxy.commit()对本地事务进行提交,在这里会创建分支事务、上报分支事务的状态以及将UndoLog持久化到undo_log表中,

    46410发布于 2019-11-11
  • 来自专栏后端进阶

    分布式事务中间件 Fescar - RM 模块源码解读

    先判断是否为Auto-Commit模式 2. 如果非Auto-Commit模式,则先查询Update前对应行记录的快照beforeImage,再执行Update语句,完成后再查询Update后对应行记录的快照afterImage,最后将beforeImage 如果是Auto-Commit模式,先将提交模式设置成非自动Commit,再执行2中的逻辑,再执行connectionProxy.commit()方法,由于执行2过程和commit时都可能会出现全局锁冲突问题 ,增加了一个循环等待重试逻辑,最后将connection的模式设置成Auto-Commit模式。 还是Auto-Commit模式,最后都会调用connectionProxy.commit()对本地事务进行提交,在这里会创建分支事务、上报分支事务的状态以及将UndoLog持久化到undo_log表中,

    75010发布于 2019-07-10
  • 来自专栏SpringBoot

    Java中事务总结详解

    JDBC的事务支持 JDBC对事务的支持体现在三个方面: 1.自动提交模式(Auto-commit mode) Connection提供了一个auto-commit的属性来指定事务何时结束。  a.当auto-commit为true时,当每个独立SQL操作的执行完毕,事务立即自动提交,也就是说每个SQL操作都是一个事务。一个独立SQL操作什么时候算执行完毕。 当auto-commit为false时,每个事务都必须显示调用commit方法进行提交,或者显示调用rollback方法进行回滚。auto-commit默认为true。

    4.4K10发布于 2020-03-11
  • 来自专栏同名公众号:大数据学习指南

    海豚调度 DolphinScheduler(2.x和3.x版本) 本地环境搭建,方便本地调式代码。

    useSSL=false username: 你的用户 password: 你的密码 hikari: connection-test-query: select 1 minimum-idle: 5 auto-commit useSSL=false username: 你的用户 password: 你的密码 hikari: connection-test-query: select 1 minimum-idle: 5 auto-commit useSSL=false username: 你的用户 password: 你的密码 hikari: connection-test-query: select 1 minimum-idle: 5 auto-commit

    2.1K10编辑于 2023-06-30
  • 来自专栏企鹅号快讯

    简析J2EE应用程序数据库类设计模式

    在JDBC中,打开一个连接对象Connection时,缺省是auto-commit模式,每个SQL语句都被当作一个事务,即每次执行一个语句,都会自动的得到事务确认。 为了能将多个SQL语句组合成一个事务,要将auto-commit模式屏蔽掉。 在auto-commit模式屏蔽掉之后,如果不调用commit()方法,SQL语句不会得到事务确认。

    69980发布于 2018-02-06
  • 来自专栏python3

    开源组件:(3)dbutils

    This Connection must be in auto-commit mode or the update will not be saved. (2)public int update(String This Connection must be in auto-commit mode or the update will not be saved. (3)public int update(String This Connection must be in auto-commit mode or the update will not be saved. This      * Connection must be in auto-commit mode or the update will      * not be saved This Connection must be in      * auto-commit mode or the update will not be saved.

    78330发布于 2020-01-06
  • 来自专栏函数式编程语言及工具

    alpakka-kafka(7)-kafka应用案例,消费模式

    ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG, autoCommitIntervalMs.toString) ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG = "true" 代表开启auto-commit ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG设置了auto-commit之间的毫秒时间间隔。 auto-commit间隔设置的越短,重复消费的数据就越少,不过kafka需要更密集的进行commit-offset,运行效率就越低。

    59120发布于 2021-08-19
  • 来自专栏函数式编程语言及工具

    alpakka-kafka(8)-kafka数据消费模式实现

    上篇介绍的at-least-once消费模式是通过kafka自身的auto-commit实现的。 事后想了想,这个应该算是at-most-once模式,因为消费过程不会影响auto-commit,kafka在每个设定的间隔都会自动进行offset-commit。 具体能实现什么消费模式并不能明确,因为auto-commit是无法从外部进行控制的。看来实现正真意义上的at-least-once消费模式还必须取得offset-commit的控制权才行。

    73610发布于 2021-08-19
  • 来自专栏卯金刀GG

    Spring主从数据库的配置和动态数据源切换原理

    rw_password driver-class-name: com.mysql.jdbc.Driver hikari: pool-name: HikariCP auto-commit ro_password driver-class-name: com.mysql.jdbc.Driver hikari: pool-name: HikariCP auto-commit

    3K20发布于 2019-07-25
  • 来自专栏java架构计划训练营

    HikariCP数据源(九)

    SQ minimum-idle: 5 # 最小连接数 maximum-pool-size: 20 # 最大连接数 auto-commit

    62030编辑于 2022-06-14
  • 来自专栏发哥说消息队列

    kafka常见报错集合-一

    需要客户端指定版本: 默认是: 4、消费者报错报retriable exception 报错信息:[Consumer clientId=consumer-6, groupId=-test] Asynchrnous auto-commit

    1.5K00编辑于 2024-03-03
  • 来自专栏波波烤鸭

    【第十七篇】Flowable整合Springboot环境

    123456 hikari: minimum-idle: 5 idle-timeout: 600000 maximum-pool-size: 10 auto-commit

    3.6K11编辑于 2022-04-13
  • 来自专栏开发资源

    HikariPool-1 - Connection is not available, request timed out after 30000ms

    180000 # 连接池最大连接数,默认是10 maximum-pool-size: 50 # 此属性控制从池返回的连接的默认自动提交行为,默认值:true auto-commit

    2.6K10编辑于 2024-01-05
  • 来自专栏python3

    struct sqlite3

    dbOptFlags;               /* Flags to enable/disable optimizations */   u8 autoCommit;                /* The auto-commit

    82520发布于 2020-01-10
  • 创建和使用claude subagent

    ., "always use bun", "never auto-commit"), save it — no need to wait for multiple interactions - When

    2200编辑于 2026-03-18
  • 来自专栏码匠的流水账

    聊聊rocketmq-client-go的api.go

    primitive.MessageQueue, timestamp int64) (int64, error) ​ // Commit the offset of specified mqs to broker, if auto-commit

    87400发布于 2020-07-04
  • 来自专栏IT云清

    seata源码中一个有趣的讨论

    into ConnectionProxy.commit, that the number of LockKeyConflict can be significantly reduced whether auto-commit

    1.2K10发布于 2020-01-13
  • 来自专栏旅途散记

    tips & tricks for DataGrip

    , 则行列将倒换, 当列数比较多时,行列切换进行视图,键值是一种神操作 Enter/Space 回车键&空格键 提交&清空 ---- Command+Z 及其他一些小tips 撤销操作,如果选了”Auto-commit

    63120编辑于 2023-06-18
领券