Giter Club home page Giter Club logo

mongodbimporter's Introduction

MongodbImporter

Mongodb批量导入工具,采用MIT协议。

使用Mongodb的导入批量文件的时候可能会各种报错,为了快速达到目的,写了这个程序,并支持并行导入。

生成之后, 找到Dll, 使用方法:

    -source    Mongodb的bin目录,默认当前目录.
    -from      Mongodb的备份目录,默认当前目录.
    -error     该程序的错误日志输出,默认当前目录.
    -processor 启用的进程数,默认为CPU核数.
    -delay     进程池枯竭时轮询等待时间,由于是采用文件附加方式入库,速度较快,默认200毫秒.
    

Windows脚本如下:

@echo off
cls
set source=F:\SOFT-MG\bin\
set from=D:\MongoDB_Backup\
set error=D:\Error_Log\
set processor=4
set args=-source %source% -from %from% -processor %processor% -error %error%

dotnet MongodbImporter.dll %args%

if %errorlevel% equ 0 (
	color 0A
	echo 执行成功!
) else (
	color 0c
	echo 执行失败!
)
pause >nul

mongodbimporter's People

Contributors

nmsazulx avatar

Stargazers

Eric avatar

Watchers

James Cloos 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.