Skip to content

基于mybatis开启高效写入不生效? #34495

@KevinRecovery

Description

@KevinRecovery

【TDengine 使用环境】
测试环境

【TDengine 版本】

DB:3.3.8.0 驱动:3.8.0

【操作系统以及版本】

Ubuntu x86_64

【部署方式】

Docker容器部署

【集群节点数】

3个

【集群副本数】

3副本

【描述业务影响】

1、在数据库Url配置开启高效写入

Image

2、基于Mybatis实现直接写入的SQL

Image 3、预编译和最终执行SQL

==> Preparing: INSERT INTO product_139_property ( brightness , temperature , tbname , iot_id , serialnumber , ts ) VALUES ( ? , ? , ? , ? , ? , ? )
==> Parameters: 66(Integer), 88(Integer), device_139_property_1001(String), 1001(Integer), 1001(String), 1770021698759(Long)
最终SQL:
INSERT INTO product_139_property ( brightness , temperature , tbname , iot_id , serialnumber , ts ) VALUES ( 66 , 88 , 'device_139_property_1001' , 1001 , '1001' , 1770021698759 )
4、结果
日志未报错,写入数据不成功

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions