-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能否收集并允许用户查看掉落的具体时间 #21
Comments
时间已经收集了,但是目前还没有整理的代码。还没有动手的主要原因是在斟酌颗粒度的大小(1分钟/5分钟/10分钟/1小时),希望能找到一个最佳的平衡点。 |
可否考虑设置一个scroll bar或者menu之类的,让用户自行选择想查看的时间跨度,poi只负责生成统计图表就好 |
这个暂时不会考虑,数据库压力会很大。如果有想做验证的,(最好电脑跑这种吃内存的数据库也无压力的),我可以提供原始的掉落数据。 |
初期以天为粒度我觉得可行 |
還有就是排除或只顯示海域有限定掉落的掉落率 |
那么可以提供这些原始数据下载吗? |
|
非常感谢!! 2016-05-15 12:18 GMT+08:00 Gizeta [email protected]:
|
那个链接就是数据库的dump。数据源是poi那边的,数据库会定期dump一次。至少能保证一天更新一次。 |
@Westernnero |
好的,感谢!正在低速下载中…… |
@Gizeta |
http://poi.0u0.moe/dump/dropshiprecords.gz |
1.3G gzip compressed, 5G WiredTiger compressed, maybe 50G uncompressed. |
@yukixz |
|
Learn how to parse timestamp from ObjectID: https://steveridout.github.io/mongo-object-time/ |
@yukixz 非常感谢 |
@yukixz 这个要怎么导入或者查看啊。。看到的导入好像只有JSON/CSV/TSV格式的 |
mongodb
…On Wed, Sep 27, 2017 at 10:31 PM, David Diao ***@***.***> wrote:
@yukixz <https://github.com/yukixz> 这个要怎么导入或者查看啊。。看到的导入好像只有JSON/CSV/TSV格式的
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADLuwaRQ_dGprVygxOFeb0BAiuSustftks5smlxfgaJpZM4IcNTe>
.
--
*Dazzy Ding*
Email: [email protected]
|
@yukixz 这个我知道但是然后呢 |
@DavidDiao mongorestore --gzip --archive=createitemrecords.gz -d poi-production 查询的话 function objectIdWithTimestamp(timestamp) {
if (typeof(timestamp) == 'string') {
timestamp = new Date(timestamp);
}
var hexSeconds = Math.floor(timestamp/1000).toString(16);
var constructedObjectId = ObjectId(hexSeconds + "0000000000000000");
return constructedObjectId;
}
db.createitemrecords.find({ _id: { $gt: objectIdWithTimestamp('2017/09/12') } }); |
请问建造统计的掉率是计算哪段时间段内的呢 |
@xiao-FLLLLLLL 如果还有疑问请开新的issue 普建:2017/02/12 ~ NOW() 为什么普建是02/12的,因为在硬盘里保留的最早的数据就是02/12的 |
@Gizeta |
有不少人都承认(或说有这种感觉)舰C的随机系统很可能是伪随机的,不同时间的掉率很可能不一样。我想是否能够像岛风go的数据库那样,自动收集和显示“玄学掉落时间”?
The text was updated successfully, but these errors were encountered: