Redis数据结构设计,用于对基于时间的值进行排序(Redis data structure design for sorting time-based values)
我正在对数据流执行一些分析并将结果发布到Redis频道上。 消费者订阅这些频道并获得实时数据馈送。 所有的历史数据分析结果都丢失了。
现在我想添加在Redis中存储历史数据的功能,以便消费者可以查询这些历史数据(主要是时间)。 由于分析结果是按时间划分的,在Redis中存储结果的好设计是什么?
I'm performing some analysis on a data stream and publishing the results on a Redis channel. Consumers subscribe to these channels and get real-time data feeds. All historical data analysis results are lost.
Now I want to add the ability to store historical data in Redis so that consumers can query this historical data (mainly by time). Since the analysis results are partitioned by time what would be the a good design to store the results in Redis?
原文:https://stackoverflow.com/questions/17153154
更新时间:2023-11-30 07:11
最满意答案
相关问答
更多-
您的本地磁盘或svn服务器磁盘/usr分区已满。 这可以防止svn命令创建必要的临时文件,因此提交失败。 No space left on device /dev/[hs]d[abcd..][1-..] /dev/hda1上的系统设备(硬盘驱动器 - 而不是iOS设备)(或者/dev/hda1 /dev/[hs]d[abcd..][1-..] )。 svn: Commit failed (details below) svn: Can't open '/usr/local/repos/Iphone/my_s ...
-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
在Xcode中标记提交(Tag a commit in Xcode)[2023-10-08]
三年后, Xcode 9通过标记功能得到了增强。 只需转到源代码管理导航器并通过右键单击该特定提交来标记通过上下文菜单进行的任何提交。 Three years after, Xcode 9 has been enhanced by tagging feature. Just go to Source Control navigator and tag any commit via context menu opened by rightclicking that specific commit. -
您可以获得的最佳效果是转到管理器→存储库→展开提交(单击▶),然后单击“(查看更改)”按钮。 这将让你逐个文件地看到diffs文件,但不能同时看到整个提交。 使用GitX ,它显示git历史比Xcode更好 - 你会看到每个提交差异,以及合并和分支。 两者都可以同时在同一个存储库上运行。 The best you can get is to go to Organizer → Repositories → Expand commit (click ▶) and click "(View Changes)" ...
-
例: git tag -a v1.2 9fceb02 -m "Message here" 其中9fceb02是提交ID的起始部分。 然后,您可以使用git push --tags origin master来推送它们 您可以使用git log来显示当前分支中的所有提交ID。 在Pro Git书中也有一个很好的标签标签 。 Example: git tag -a v1.2 9fceb02 -m "Message here" Where 9fceb02 is the beginning part of th ...
-
有趣的问题 您可能希望从本网站上的以下代码中进行推断。 可以生成一个唯一但标准化的文本消息与文件夹名称/日期组合相结合作为自动提交消息,或者使用脚本使其可运行以接受参数作为输入,并将消息作为参数。 我想虽然这可能与在终端中输入git commit一样多。 相反,您可能希望将此脚本与“文件夹操作”结合使用,以监视脚本充当服务的文件夹上的活动。 (* Collin Donnell版权所有(C)2012 特此授予任何获得本软件和相关文档文件(“软件”)副本的人免费许可,无限制地交易本软件,包括但不限于使用,复制, ...
-
Xcode Bots不会将git子模块更新为指定的提交(Xcode Bots do not update git submodules to specified commit)[2022-08-13]
这个问题的一个更简单的解决方案,不需要服务器具有git遥控器的凭证 - 将其添加为机器人的预集成脚本: #!/bin/sh # Enumerates each submodule to check out the desired commit. # Needed because Xcode bots for some reason prefers to check out # the branch head, which may result in the wrong commit. cd "$XCS_PR ... -
在xcode中没有用于Git版本控制的附加日志。 相反,你需要通过下面的方面通过git命令来调试问题: 1.确保user.name和user.email已被配置 如果您还没有为本地git user.email配置user.name和user.email或全局配置,则可以通过以下方式配置它们: git config --glogal user.name "user name" git config --global user.email "email address" 你可以参考这个帖子的类似问题。 2.通 ...
-
好.. 我不知道出了什么问题。 但当我尝试再次导入然后检查回购。 它开始工作了 Another workaround would be to use "SVNX" Download Link it has all the feature and its vary easy to use. you can get help setting it up with videos on youtube check out this link
-
假设您的旧提交是在分支master中完成的,并且您继续在同一分支中提交。 现在,您将分支更改推送到Github。 因此,所有提交(在此分支中)将被复制到那里。 Let's say your old commit was done in branch master and you continue to commit in the same branch. Now you push the branch changes to Github. As a result ALL commits (in this b ...