首页 \ 问答 \ Redis数据结构设计,用于对基于时间的值进行排序(Redis data structure design for sorting time-based values)

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

最满意答案

三年后, 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.

enter image description here

相关问答

更多
  • 您的本地磁盘或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 ...
  • 三年后, 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 特此授予任何获得本软件和相关文档文件(“软件”)副本的人免费许可,无限制地交易本软件,包括但不限于使用,复制, ...
  • 这个问题的一个更简单的解决方案,不需要服务器具有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 ...

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的