Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Hooopo
@hooopo
Admin
NO. 8 / 2011-10-28

[email protected]
nil
北京
160 Topics / 3013 Replies
360 Followers
0 Following
74 Favorites
聪明的妖怪录下了唐僧的紧箍咒
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 关于 GraphQL Query 的一个问题 at February 20, 2020

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

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

  • Postgres Fulltext Search (一) at February 14, 2020

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

  • Petri Net workflow for Rails at February 14, 2020

    会……哈哈 机翻的😂

  • Petri Net workflow for Rails at February 14, 2020

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

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

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

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

    searchkick

  • 我听到有人在说:「?????:??」 at February 04, 2020

    ?????:??

  • Shadow Table for Postgres at January 17, 2020

    解决的问题类似

  • Shadow Table for Postgres at January 15, 2020

    其实 truncate 也可以 hook 掉

  • Shadow Table for Postgres at January 15, 2020

    并不是

  • Shadow Table for Postgres at January 15, 2020

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

  • Shadow Table for Postgres at January 11, 2020

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

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

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

    老板说的对

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

    有个东西叫 nfs 或者云存储

  • Ruby 2.7.0 Released at January 03, 2020

    酒仙桥?

  • SQLBuilder - 一个简单的 SQL 生成器 at January 03, 2020

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

  • SQLBuilder - 一个简单的 SQL 生成器 at January 03, 2020

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

  • SQLBuilder - 一个简单的 SQL 生成器 at January 03, 2020

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

  • SQLBuilder - 一个简单的 SQL 生成器 at January 03, 2020

    处理过类似的查询,从使用 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 December 26, 2019

    awesome env

  • 在 Ruby 中实现一个信号订阅通知功能 (一) at December 14, 2019

    消息队列

  • Bring Many monad to Active Support and Active Record relations at December 06, 2019

    还是 flat map 清晰一些 😄

  • 为了用 Markdown 写简历, 我做了这个工具 at November 23, 2019

    不错

  • Chicago Boss: Start small, dream big at November 21, 2019

    再发小广告删号了

  • homeland_worker 启动不了 at November 20, 2019

    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 November 13, 2019

    👍

  • 用 Rails 打造的 SaaS 平台软件:Baklib at November 12, 2019

    这个是公司的项目吗

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

    看起来不错

  • Rails 默认 Session 的存储方式:CookieStore at October 20, 2019

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

  • 二维码缺失,有什么办法修复吗? at October 20, 2019

    分享一下怎么解决的咯

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