« Back to channel list

#RubyOnRails - 01 August 2019

« Back 1 day Forward 1 day »
[00:19:10] ephemer0l: has joined #RubyOnRails
[00:25:26] jorrin: has joined #RubyOnRails
[00:34:44] jorrin: has joined #RubyOnRails
[00:35:19] jorrin: has joined #RubyOnRails
[02:02:15] duderonomy: has joined #RubyOnRails
[02:51:35] Saukk: has joined #RubyOnRails
[03:58:07] tdy: has joined #RubyOnRails
[03:59:36] srinidhi: has joined #RubyOnRails
[04:07:46] srinidhi: has joined #RubyOnRails
[04:17:08] morenoh11: has joined #RubyOnRails
[04:32:36] orbyt_: has joined #RubyOnRails
[04:34:16] hive-mind: has joined #RubyOnRails
[04:35:22] lato_1: has joined #RubyOnRails
[04:56:48] ariedler: has joined #RubyOnRails
[05:11:53] sameerynho: has joined #RubyOnRails
[05:16:36] Technodrome: has joined #RubyOnRails
[05:19:26] srinidhi: has joined #RubyOnRails
[05:38:18] duderonomy: has joined #RubyOnRails
[05:42:32] Xiti: has joined #RubyOnRails
[06:06:47] schneider: has joined #RubyOnRails
[06:21:44] ascarter: has joined #RubyOnRails
[06:47:31] lxsameer: has joined #RubyOnRails
[06:56:37] prestorium: has joined #RubyOnRails
[06:57:36] sandstrom: has joined #RubyOnRails
[06:57:52] ariedler: has joined #RubyOnRails
[07:04:52] Technodrome: has joined #RubyOnRails
[07:34:20] schneider: has joined #RubyOnRails
[07:35:05] quazimodo: has joined #RubyOnRails
[07:39:07] ur5us: has joined #RubyOnRails
[07:42:11] deepredsky: has joined #RubyOnRails
[07:57:48] kapilp: has joined #RubyOnRails
[08:03:31] Ergo: has joined #RubyOnRails
[08:14:35] alxgsv: has joined #RubyOnRails
[08:42:55] Dbugger: has joined #RubyOnRails
[08:58:37] ariedler: has joined #RubyOnRails
[09:03:41] za1b1tsu: has joined #RubyOnRails
[09:12:36] alxgsv: has joined #RubyOnRails
[09:17:39] dtzuzu: has joined #RubyOnRails
[10:01:46] Ropeney_: has joined #RubyOnRails
[10:15:09] srinidhi: has joined #RubyOnRails
[10:22:55] mikecmpbll: has joined #RubyOnRails
[10:38:49] akosednar: has joined #RubyOnRails
[10:48:47] fritzroy15: has joined #RubyOnRails
[10:49:17] fritzroy15: hello, any idea why a class I wrote in config/initializers/ isn't being picked up? it says undefined when I try to create an instance from it
[10:52:02] fritzroy15: the code that tries to use it is under config/environments/
[10:52:36] fritzroy15: is there a chance that the stuff in initializers doesn't precede the stuff in environments as initialization?
[10:56:07] quazimodo: has joined #RubyOnRails
[11:10:27] lankanmon: has joined #RubyOnRails
[11:18:52] srinidhi: has joined #RubyOnRails
[12:46:29] conta1: has joined #RubyOnRails
[13:11:03] Linell: fritzroy15: I'm not sure, but that sounds plausible
[13:28:27] uks: has joined #RubyOnRails
[13:46:26] mostlybadfly: has joined #RubyOnRails
[14:21:32] tdy: has joined #RubyOnRails
[14:29:07] ascarter: has joined #RubyOnRails
[14:43:05] ascarter: has joined #RubyOnRails
[15:33:03] Ryctolagus: has joined #RubyOnRails
[15:36:14] Ryctolagus: has joined #RubyOnRails
[15:36:16] deepredsky: has joined #RubyOnRails
[15:43:09] Ryctolagus: Hello Everyone! Just starting my journey into programming for the web. I'm a one man show with a bunch of programming experience in R and SQL/SSRS/SSIS. Any wonderful sources of learning for Rails or Ruby that anyone could share would be appreciated.
[15:44:25] Linell: https://www.rubytapas.com/ <- is great
[15:44:51] Linell: Rails is nice too because essentially if you google "how to X rails" you'll find *something*
[15:45:30] havenwood: Ryctolagus: The Rails docs are great for Rails basics.
[15:47:59] Ryctolagus: @havenwood: Yes I have worked my way through the beginning tutorials and they were wonderful for a noob like me.
[15:48:41] Ryctolagus: Linell: Thank you I will check that resource out.
[16:00:28] snowy: has joined #RubyOnRails
[16:01:27] Jon30: has joined #RubyOnRails
[16:05:01] Jon30: hey guys, i've been struggling with this issue forever. Using latest whenever and Devise gem, Rails 5.2.1 with Capistrano and rvm (with require "whenever/capistrano" in Capfile). When cron attempts to run, it throws an error "uninitialized constant Devise" when it attempts to execute the initializer. I tried adding require 'devise' above the initizilizer but it didn't help...
[16:06:29] havenwood: Jon30: Have you taken a look at the RVM cron page yet? https://rvm.io/deployment/cron
[16:08:58] schneider: has joined #RubyOnRails
[16:22:34] Inside: capistrano?
[16:24:32] sandstrom: has joined #RubyOnRails
[16:32:21] Sylario: has joined #RubyOnRails
[16:41:37] prestorium: has joined #RubyOnRails
[16:42:50] deepredsky: has joined #RubyOnRails
[16:54:14] orbyt_: has joined #RubyOnRails
[16:56:36] duderonomy: has joined #RubyOnRails
[17:09:46] lypsis: has joined #RubyOnRails
[17:20:43] lypsis_: has joined #RubyOnRails
[17:30:34] s00pcan: has joined #RubyOnRails
[17:44:11] conta1: has joined #RubyOnRails
[17:47:03] alxgsv: has joined #RubyOnRails
[17:53:23] kapilp: has joined #RubyOnRails
[18:00:08] rickmark: has joined #RubyOnRails
[18:15:18] Axsuul: Has anyone implemented round-robin processing of Sidekiq jobs?
[19:04:18] defsdoor: has joined #RubyOnRails
[19:27:44] orbyt_: has joined #RubyOnRails
[19:30:15] orbyt_: has joined #RubyOnRails
[19:47:13] orbyt_: has joined #RubyOnRails
[20:26:28] Ergo: has joined #RubyOnRails
[20:29:34] ElFerna: has joined #RubyOnRails
[20:31:10] ElFerna: has joined #RubyOnRails
[21:05:01] Yzguy: has joined #RubyOnRails
[21:47:45] ElFerna_: has joined #RubyOnRails
[21:50:10] dtzuzu: has joined #RubyOnRails
[21:53:48] ElFerna: has joined #RubyOnRails
[22:00:49] ElFerna: has joined #RubyOnRails
[22:08:51] LiamW_: has joined #RubyOnRails
[22:09:15] tdy: has joined #RubyOnRails
[22:10:11] LiamW_: is it to be expected that associations are extremely slow to preload
[22:12:31] LiamW_: https://gist.github.com/liamwhite/a72cf20a704b34435ddc4ab752c95790 2.4 + 1.3 + 5.8 + 1.6 ≠ 98.3
[22:14:10] havenwood: LiamW_: Are you properly indexing? Is the serialization step taking most of the time?
[22:14:18] LiamW_: look at the query times
[22:14:22] LiamW_: the index is present
[22:14:35] LiamW_: serialization step is taking an insignificant amount of time (I tested with map(&:itself))
[22:15:54] havenwood: LiamW_: It's also indexed for the foreign ids? It's near 100% index cache hit?
[22:16:11] ElFerna: has joined #RubyOnRails
[22:16:37] LiamW_: I refer you again to the query times posted in the gist, but sure I'll bite
[22:16:40] LiamW_: give me a moment
[22:16:57] havenwood: LiamW_: You'll get significant performance improvement on the query times if the created_at and includes are indexed.
[22:17:19] LiamW_: Image Load (2.4ms)
[22:17:28] havenwood: (Assuming they weren't.)
[22:17:29] LiamW_: it is indexed, just so you know
[22:18:00] havenwood: Just checking, since I often see improper indexing or too little memory causing cache hit rate to fall.
[22:18:33] LiamW_: planner shows that is is using an index scan in every case
[22:19:02] havenwood: LiamW_: Nice, then that's not part of the problem. 👍🏽
[22:21:05] LiamW_: just to dispel any further doubt that these associations are NOT indexed, here are some table counts: images 2106691 image_taggings 32244237 tags 423570 users 285192
[22:22:20] LiamW_: I have not in any practical scenario seen a table scan over 32M rows complete in 1.3ms
[22:23:36] LiamW_: back to my question; should I expect these associations to be slow to load?
[22:29:21] iamdevnul_: has joined #RubyOnRails
[22:29:57] Kilobyte22: has joined #RubyOnRails
[22:29:58] n1v_: has joined #RubyOnRails
[22:30:01] siasmj_: has joined #RubyOnRails
[22:30:02] KevinSjoberg_: has joined #RubyOnRails
[22:30:03] ziyadb_: has joined #RubyOnRails
[22:33:51] LiamW_: just tried it again now
[22:33:55] LiamW_: irb(main):002:0> Benchmark.ms { Image.order(created_at: :desc).limit(25).includes(:tags, :user).map(&:itself) }
[22:33:56] LiamW_: => 237.87113092839718
[22:43:08] LiamW_: no single step of building the association should take this much time
[22:43:19] LiamW_: so something is going wrong inside rails
[22:43:48] LiamW_: I benchmarked all the individual parts and they came out fine, and definitely didn't add up to "way too long"
[22:44:02] DylanJ: has joined #RubyOnRails
[22:45:32] LiamW_: I will have to do some more in-depth profiling later I guess
[22:50:06] Ryctolagus: Anyone have experience using MSSQL as the database backend for an application?
[22:53:37] LiamW_: 219885 method calls, top 5: {:[]=>26199, :primary_key=>12649, :value=>12301, :primary_keys=>12244, :_read_attribute=>11149}
[22:54:18] LiamW_: almost smells to me like an algorithmic complexity problem
[23:32:34] dtzuzu: has joined #RubyOnRails