Redis批量匯入文字資料
-
# 檢視匯入的文字檔案,裡面是具體的Redis命令
-
# cat 20180208.txt
-
hdel user.user.base 317986
-
hdel user.user.base 371149
-
hdel user.user.base 370964
-
hdel user.user.base 371291
-
hdel user.user.base 370906
-
hdel user.user.base 371035
-
hdel user.user.base 371086
-
hdel user.user.base 371042
-
hdel user.user.base 370838
-
hdel user.user.base 371347
-
hdel user.user.base 371065
-
hdel user.user.base 371280
-
hdel user.user.base 371307
-
-
在redis-cli客戶端工具中,有管道選項
-
# redis-cli --help
-
--pipe Transfer raw Redis protocol from stdin to server.
-
-
執行資料匯入
-
# cat 20180208.txt | /usr/bin/redis-cli --pipe
-
All data transferred. Waiting for the last reply...
-
Last reply received from server.
- errors: 0, replies: 593
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2150943/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sqlldr批量匯入匯出資料測試SQL
- 大文字資料,匯入匯出到資料庫資料庫
- MySQL 批量匯入資料優化MySql優化
- elasticsearch bulk資料--ES批量匯入json資料ElasticsearchJSON
- 將informix匯出的文字資料匯入oracle資料庫ORMOracle資料庫
- Elasticsearch批量匯入資料指令碼(python)Elasticsearch指令碼Python
- Oracle:從SQL檔案批量匯入資料OracleSQL
- SQL Server Bulk Insert批量資料匯入SQLServer
- Windows 下 MySQL 資料匯入 RedisWindowsMySqlRedis
- 使用csv批量匯入、匯出資料的需求處理
- 使用sqlloader向oracle匯入文字資料SQLOracle
- 使用oracle sqlldr匯入文字資料的例子OracleSQL
- 將資料從文字匯入到mysql(轉)MySql
- QZpython匯入匯出redis資料的實現deuPythonRedis
- 批量備份還原匯入與匯出MongoDB資料方式昝璽MongoDB
- 使用FSO把文字資訊匯入資料庫 (轉)資料庫
- Python批量匯入Excel資料到MySQLPythonExcelMySql
- 使用sqlldr匯入文字資料到oracleSQLOracle
- Redis資料匯入工具優化過程總結Redis優化
- .NET Core使用NPOI將Excel中的資料批量匯入到MySQLExcelMySql
- 批量匯入某大張表資料的時候的最佳實踐
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- 資料泵匯出匯入
- Oracle 資料匯入匯出Oracle
- mysql資料匯入匯出MySql
- mysql資料匯出匯入MySql
- oracle資料匯入匯出Oracle
- Redis從檔案中批量插入資料Redis
- Redis資料儲存位置匯出資料Redis
- sqlserver匯入匯出文字檔案SQLServer
- 把TXT文字匯入SQLServer 出錯:資料轉換失敗SQLServer
- 文字檔案用sqlldr工具匯入到oracel資料庫中SQL資料庫
- MySQL入門--匯出和匯入資料MySql
- 資料匯入SQLLDRSQL
- sqoop資料匯入匯出OOP
- 資料匯入匯出EXP/IMP
- MongoDB資料匯入與匯出MongoDB
- mysqldump匯入匯出表資料MySql