Spirng boot+mybatis 批量写入慢
#13888
-
最早用的是phoneix+hbase,写入速度性能还是挺不错的。 |
Beta Was this translation helpful? Give feedback.
Answered by
zy-kkk
Nov 3, 2022
Replies: 1 comment 11 replies
-
Spirng boot+mybatis方式以及原始JDBC方式都不推荐,相当于大量的insert into放到doris进行,这种效率是极低的,而且会引起-235问题,我们建议采用stream load方式来进行对doris的写入,而Spirng boot+mybatis可以对Doris进行查询,以及少量的改和删 |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
a3225167
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spirng boot+mybatis方式以及原始JDBC方式都不推荐,相当于大量的insert into放到doris进行,这种效率是极低的,而且会引起-235问题,我们建议采用stream load方式来进行对doris的写入,而Spirng boot+mybatis可以对Doris进行查询,以及少量的改和删
stream load demo:https://github.com/apache/doris/blob/master/samples/stream_load/java/DorisStreamLoad.java