Comments (3)
First, create a directory, e.g., path/to/db
, then start MongoDB server on that directory
mongod --dbpath path/to/db
Then (probably in another terminal) restore gzipped data (path/to/createitemrecords.gz
) to that directory
mongorestore --gzip --archive=path/to/createitemrecords.gz -d poi-production
Then query from the DB (using a MongoDB GUI program or a MongoDB binding library for your language of choice). Here is an example for dropshiprecords.gz
https://github.com/kcwiki/repo/blob/old2/poi/poidb.sh, https://github.com/kcwiki/repo/blob/old2/poi/poidb-data.js.
As an alternative method, can also read it directly as BSON (inside MongoDB archive) without using MongoDB server, e.g., https://www.npmjs.com/package/stream-bson.
from poi-server.
First, create a directory, e.g.,
path/to/db
, then start MongoDB server on that directorymongod --dbpath path/to/db
Then (probably in another terminal) restore gzipped data (
path/to/createitemrecords.gz
) to that directorymongorestore --gzip --archive=path/to/createitemrecords.gz -d poi-production
Then query from the DB (using a MongoDB GUI program or a MongoDB binding library for your language of choice). Here is an example for
dropshiprecords.gz
https://github.com/kcwiki/repo/blob/old2/poi/poidb.sh, https://github.com/kcwiki/repo/blob/old2/poi/poidb-data.js.As an alternative method, can also read it directly as BSON (inside MongoDB archive) without using MongoDB server, e.g., https://www.npmjs.com/package/stream-bson.
Thx. It works.
from poi-server.
Going to add a short piece on the wiki for those commands.
from poi-server.
Related Issues (20)
- Failed dump HOT 5
- Site down HOT 2
- Site down HOT 1
- Site down? HOT 1
- Database dump not available HOT 2
- Dumps not available HOT 3
- remodelitemrecords HOT 2
- previous dumps HOT 1
- Support conditional drops? HOT 9
- Notice on ship drop data storage and dumping HOT 24
- Dump File Formats HOT 5
- [RFC] cell info collection HOT 2
- Suggestion: record own fleet if there is item drop? HOT 1
- Are there dumped data of battleapi? HOT 2
- [RFC] equipment bonus collection HOT 3
- Proposal for drop_ship record expansion HOT 5
- 11月2日上传到https://db.poi.moe/dump/ 的开发/掉落数据包大小只有300B,能不能麻烦重新上传一下 HOT 1
- Proposal for construct_ship record expansion
- Incorrect drop-ship reporting from AdmiralRoom HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poi-server.