GithubHelp home page GithubHelp logo

arraycto / db2es Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangfan002/db2es

0.0 0.0 0.0 748 KB

同步数据库到数据到ES

License: Apache License 2.0

Dockerfile 0.18% Java 99.12% TSQL 0.69%

db2es's Introduction

db2es:1.0

数据库同步ES的Swagger版(脚手架)

标签

ElasticSearch7.10 ES 数据库 同步 mysql sqlserver 数据清洗 多线程 大数据量 全量 增量 定时 脚手架

优点

  • 相比于logstash,支持对数据的真删除进行同步(基于触发器)
  • 对大数据量同步性能更出色,基于id或自增列进行多线程分批同步
  • 完全又java语言进行开发,数据清洗给为简单
  • 支持定时任务进行索引的增量同步
  • 支持同步完毕的邮件和钉钉通知
  • 同步基于sql,支持mysql,sqlserver等关系型数据库
  • 支持多ES集群

接口展示

运行条件

  • 修改yml的mysql连接信息并在mysql创建数据库index_sync,执行src/main/resources/init-sql/mysql_create.sql
    • index_cycle_info表 存储同步时间信息,以便查询增量数据
    • task_job表 存储定时器任务信息
    • task_record表 存储全量和增量索引任务状态信息
  • 修改yml的Sqlserver连接信息并在sqlserver执行sqlserver_create.sql
    • trigger_deleted表 记录删除数据的信息
    • trigger_big_data_delete触发器 记录表big_data的删除操作到trigger_deleted表
  • 修改es连接信息
  • 运行项目启动类即可

访问地址

主要流程图

技术架构

springboot2 maven mybatis-plus mysql sqlserver logback ElasticSearch7.10 swagger2

联系我

[email protected]

db2es's People

Contributors

wangfan002 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.