把資料匯入CouchDB-java、Ruby、Erlang三種方法
Working recently with CouchDB I become interested on how to import existing data into the database quickly.
The CouchDB is written in Erlang so the first thing which came to my mind was to use that language for the job, but to find out if it runs ‘quickly’ or not, I had to compare it with some other languages/libraries.
The natural choice was Java of course ( I consider it my ‘native’ language ), on top of that I added another test with Ruby as I had my first steps with CouchDB using that language (that’s because of the ‘Seven Databases in Seven Weeks‘ book).
So, what I’m trying to do: Import the large xml file into the CouchDB as quickly as possible. I have usedJamendo data dump as in my previous tutorial about parsing the XML with Woodstox library.
As the Jamendo data dump XML file is quite large I’m using stream parsing in all three approaches (Java, Ruby and Erlang)
The CouchDB is written in Erlang so the first thing which came to my mind was to use that language for the job, but to find out if it runs ‘quickly’ or not, I had to compare it with some other languages/libraries.
The natural choice was Java of course ( I consider it my ‘native’ language ), on top of that I added another test with Ruby as I had my first steps with CouchDB using that language (that’s because of the ‘Seven Databases in Seven Weeks‘ book).
So, what I’m trying to do: Import the large xml file into the CouchDB as quickly as possible. I have usedJamendo data dump as in my previous tutorial about parsing the XML with Woodstox library.
As the Jamendo data dump XML file is quite large I’m using stream parsing in all three approaches (Java, Ruby and Erlang)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-746607/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 教你兩種資料庫覆蓋式資料匯入方法資料庫
- 用Navicat把SQLServer資料匯入MySQLServerMySql
- 把Excel表資料匯入到mysqlExcelMySql
- 四種方法在SQL Server資料庫中成批匯入資料SQLServer資料庫
- 如何把資料從Mysql匯入到GreenplumMySql
- windows下把資料從oracle匯入hbaseWindowsOracle
- ITDS資料匯入匯出的方法
- DataTable資料批量寫入資料庫三種方法比較資料庫
- 把資料匯入到不同的表空間
- 如何把資料匯入不同的表空間
- 把ACCESS的資料匯入到Mysql中(轉)MySql
- 使用FSO把文字資訊匯入資料庫 (轉)資料庫
- excel檔案中的資料匯入Oracle資料庫的幾種方法ExcelOracle資料庫
- plsql developer匯入匯出資料庫方法SQLDeveloper資料庫
- [zt] SQL Server匯出匯入資料方法SQLServer
- 匯入CSS的三種方式CSS
- Oracle匯入excel資料快速方法OracleExcel
- SQL Server海量資料匯入方法SQLServer
- 把csv檔案的資料匯入到oracle資料庫中Oracle資料庫
- SQL Server匯入、匯出、備分資料方法SQLServer
- plsql developer匯入匯出資料庫方法 <轉>SQLDeveloper資料庫
- hive資料倉儲匯入資料的方法Hive
- MYSQL資料匯出備份、匯入的幾種方式MySql
- 用exp/imp把遠端資料匯入到本地資料庫中資料庫
- MySQL資料匯入匯出方法與工具介紹MySql
- SQL Server海量資料匯入的方法SQLServer
- 對比資料泵與原始匯入匯出工具(三)
- 新建Oracle資料庫三種方法Oracle資料庫
- 用php把資料匯出excelPHPExcel
- 把TXT文字匯入SQLServer 出錯:資料轉換失敗SQLServer
- 如何把 .csv 的檔案匯入資料庫SQL SERVER 中!資料庫SQLServer
- banq您好,請問如何把excel的資料匯入mysql.ExcelMySql
- pandas的外部資料匯入與常用方法
- Python種匯入模組的三種方式總結Python
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- 交換兩個資料的三種方法
- 三種Ext提交資料的方法(轉)
- 資料泵匯出匯入