Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 关于 GraphQL Query 的一个问题 at 2020年02月20日

    理论上是不需要的,但实际上,后端还没有智能到可以把处理 collection 和单条记录一样高效,比如 collection 的查询,都需要分页信息之类,虽然在 gql 这层是可以不查的,但后端同样需要 count 一次。

    权限不是一个问题,gql 之后,权限其实不是基于 action 的,是基于 RLS 或 ACL 的。

  • Postgres Fulltext Search (一) at 2020年02月14日

    用了 RUM 之后,基本上和 ES 差不多了,不过打分还是赶不上 ES

  • Petri Net workflow for Rails at 2020年02月14日

    会……哈哈 机翻的😂

  • Petri Net workflow for Rails at 2020年02月14日

    来集成一下你的 form core:https://github.com/hooopo/petri_flow/pull/9

  • 求推荐!!!Rails 环境下 ElasticSearch 搜索引擎使用 elasticsearch-rails 还是 chewy。 at 2020年02月07日

    https://github.com/ankane/searchkick/pull/924 现在应该支持了

  • 求推荐!!!Rails 环境下 ElasticSearch 搜索引擎使用 elasticsearch-rails 还是 chewy。 at 2020年02月07日

    searchkick

  • 我听到有人在说:「?????:??」 at 2020年02月04日

    ?????:??

  • Shadow Table for Postgres at 2020年01月17日

    解决的问题类似

  • Shadow Table for Postgres at 2020年01月15日

    其实 truncate 也可以 hook 掉

  • Shadow Table for Postgres at 2020年01月15日

    并不是

  • Shadow Table for Postgres at 2020年01月15日

    es 其实最大的优势是编程模型,对于历史状态的回溯不如上面的方法,因为存的是状态,而不是事件,事件需要再计算才能得到状态,挺麻烦的,而且会受代码逻辑影响。

  • Shadow Table for Postgres at 2020年01月11日

    @Rei 基于 model 的方案主要问题是 callback 容易绕过

    @coderliu 这个会触发 model 的 after destroy 吗 @novtopro 类似了,不过我觉得方案三得对原理非常熟悉才能玩的转 上面没提到,那个 view 还得刷新,因为 view 生成的时候会把 select *变成静态的,里面引用的表结构变了的话,是不能动态更新到 view 的,需要 create or replace view 一下

  • 在公司里为各种业务逻辑做算法优化,却感觉不如商务人员聊天做 PPT 受重视 at 2020年01月09日

    老板说的对

  • Rails 项目多机部署后,job 中生成文件代码造成的困惑 at 2020年01月06日

    有个东西叫 nfs 或者云存储

  • Ruby 2.7.0 Released at 2020年01月03日

    酒仙桥?

  • SQLBuilder - 一个简单的 SQL 生成器 at 2020年01月03日

    好吧,Schema、Migration 其实不是必须的,establish_connection 一下就好,不过即使写报表的话,也需要知道各个表的关联关系,有一份映射其实省去很多重复劳动。

  • SQLBuilder - 一个简单的 SQL 生成器 at 2020年01月03日

    为什么不建一个 model 呢,也不复杂;多表用 AR 只会更简单,查询场景越复杂用 AR 越简单。如果有场景的话,我可以用 AR 来演示一下。

  • SQLBuilder - 一个简单的 SQL 生成器 at 2020年01月03日

    update/delete其实不复杂 没必要 DSL 了

  • SQLBuilder - 一个简单的 SQL 生成器 at 2020年01月03日

    处理过类似的查询,从使用 AR 到 raw SQL,最后又回到了 AR 😄

    1. 其实各个数据库都有 adapter,AR 完全可以支持,比如 redshift:https://github.com/ConsultingMD/activerecord5-redshift-adapter TiDB 这种,只用 mysql adapter 就行
    2. AR 也可以只做生成 SQL,query.to_sql 就行,甚至可以自己组合,比如 query1 = xxx; query2 = User.joins("INNER JOIN (#{query1.to_sql}) as t")
    3. 二楼说的复用,AR 也可以:
    query = User.where("id > 1").order("xx").limit("xx")
    count = query.unscope(:select).unscope(:order).select("count(*)").group("id")
    
  • 这年头有多少个 XXEnv? at 2019年12月26日

    awesome env

  • 在 Ruby 中实现一个信号订阅通知功能 (一) at 2019年12月14日

    消息队列

  • Bring Many monad to Active Support and Active Record relations at 2019年12月06日

    还是 flat map 清晰一些 😄

  • 为了用 Markdown 写简历, 我做了这个工具 at 2019年11月23日

    不错

  • Chicago Boss: Start small, dream big at 2019年11月21日

    再发小广告删号了

  • homeland_worker 启动不了 at 2019年11月20日

    Redis::CommandError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error

  • 用 Rails 打造的 SaaS 平台软件:Baklib at 2019年11月13日

    👍

  • 用 Rails 打造的 SaaS 平台软件:Baklib at 2019年11月12日

    这个是公司的项目吗

  • [广州] 前海易物公司招聘初级 / 中级 Ruby 工程师 201910 at 2019年10月30日

    看起来不错

  • Rails 默认 Session 的存储方式:CookieStore at 2019年10月20日

    只做缓存的话 memcache 呀 支持多线程

  • 二维码缺失,有什么办法修复吗? at 2019年10月20日

    分享一下怎么解决的咯

  • 上一页
  • 1
  • 2
  • …
  • 11
  • 12
  • 13
  • 14
  • 15
  • …
  • 108
  • 109
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English