Giter Site home page Giter Site logo

fammr / bigxmlconvertdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3zamn/bigxmlconvertdb

0.0 2.0 0.0 14 KB

超大xml解析导入数据库、千万级别大数据导出到Excel。实现核心:高性能、分段、分页循环:读取-写入-清空内存。解决传统方式的超大数据导致内存溢出

Java 100.00%

bigxmlconvertdb's Introduction

bigXmlConvertDB

超大xml解析导入数据库、千万级别大数据导出到Excel。实现核心:高性能、分段、分页循环:读取-写入-清空。解决传统方式的超大数据导致内存溢出

1.xml解析以dom4j的事件驱动、分段边读边写(预处理sql批量写入数据库)、写完清空内存的实现思路解决超大xml解析时的内存溢出问题。 2.大数据导出到Excel、使用SXSSFWorkbook方式分页可以写入多个sheet中。

测试结果:(本地机器配置较低) 1.500M大小xml文件解析写入到mysql、插入200万条记录耗时100秒左右。 2.500万条数据从mysql导出到Excel、每个sheet写入100万条。耗时10分钟左右

bigxmlconvertdb's People

Contributors

3zamn avatar

Watchers

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