danostrowski

Activity Graph

Page 1 of 2 | Next »

2016-07-27

[20:39:30] danostrowski: has joined #ruby
[20:39:31] danostrowski: has joined #RubyOnRails
[23:02:28] danostrowski: has joined #RubyOnRails
[23:02:28] danostrowski: has joined #ruby
[23:19:38] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-21

[16:14:31] danostrowski: has joined #ruby
[16:14:35] danostrowski: has joined #RubyOnRails
[18:06:33] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:38:54] danostrowski: has joined #ruby
[19:38:55] danostrowski: has joined #RubyOnRails
[20:23:52] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:25:14] danostrowski: has joined #ruby
[20:25:22] danostrowski: has joined #RubyOnRails
[20:58:48] danostrowski: Quit: Textual IRC Client: www.textualapp.com

2016-06-20

[21:21:12] danostrowski: has joined #ruby
[21:21:13] danostrowski: has joined #RubyOnRails
[22:08:25] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:09:56] danostrowski: has joined #ruby
[22:09:59] danostrowski: has joined #RubyOnRails
[23:04:00] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:04:49] danostrowski: has joined #RubyOnRails
[23:04:49] danostrowski: has joined #ruby
[23:47:33] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-17

[00:16:44] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[07:06:27] danostrowski: has joined #ruby
[07:06:28] danostrowski: has joined #RubyOnRails
[07:11:01] danostrowski: Ping timeout: 250 seconds
[15:56:32] danostrowski: has joined #ruby
[15:56:33] danostrowski: has joined #RubyOnRails
[16:01:03] danostrowski: Ping timeout: 246 seconds

2016-06-16

[01:00:12] danostrowski: has joined #ruby
[01:00:13] danostrowski: has joined #RubyOnRails
[01:05:51] danostrowski: Ping timeout: 244 seconds
[16:20:00] danostrowski: has joined #ruby
[16:20:01] danostrowski: has joined #RubyOnRails
[17:42:54] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:58:57] danostrowski: has joined #ruby
[17:59:07] danostrowski: has joined #RubyOnRails
[18:39:20] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:52:18] danostrowski: has joined #ruby
[19:52:19] danostrowski: has joined #RubyOnRails
[22:27:44] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:39:39] danostrowski: has joined #RubyOnRails
[22:39:39] danostrowski: has joined #ruby
[22:57:42] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:08:25] danostrowski: has joined #ruby
[23:08:26] danostrowski: has joined #RubyOnRails

2016-06-15

[00:02:56] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:34:28] danostrowski: has joined #ruby
[17:35:29] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:36:33] danostrowski: has joined #ruby
[18:29:58] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:57:37] danostrowski: has joined #ruby
[20:10:44] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:24:25] danostrowski: has joined #ruby
[20:38:16] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:41:36] danostrowski: has joined #ruby
[20:55:14] danostrowski: So... where's the best room to ask an activerecord question?
[20:58:09] danostrowski: has joined #RubyOnRails
[20:59:29] danostrowski: hullo. I have an active record snippit that's basically `model.includes({:table_one => :table_two}, :table_three).where.not(something: 'badthing')` ...
[20:59:59] danostrowski: I would expect this to do some joining in the initial query to get all the data out for the included tables, but the .to_sql just shows the initial table being selected out of and no joins.
[21:01:51] danostrowski: roamingdog eh... sure, I'll give it a whirl, but isn't .joins supposed to lazy load?
[21:03:21] danostrowski: roamingdog: http://guides.rubyonrails.org/active_record_querying.html -> "Solution to N + 1 queries problem"
[21:05:14] danostrowski: Interesting. OK, so .joins() produces a query that does the JOINs, but does not select from more than just the original table.
[21:05:23] danostrowski: I'd expect that .includes() to do the joins AND select from the other tables.
[21:05:30] danostrowski: instead it doesn't even do the JOINs.
[21:06:20] danostrowski: VeryBewitching, Yeah, that's fine, makes sense with what the docs say... it's the .includes() bit that isn't behaving as I'd expect.
[21:06:31] danostrowski: VeryBewitching yeah, ofc.
[21:08:57] danostrowski: strange. yeah, I tried even a simpler .includes() with just one table and it still doesn't join on anything, let alone select.
[21:10:47] danostrowski: VeryBewitching: hmm, the docs don't indicate you always need both. Odd omission, I guess, and also weird that it needs the .joins specified.
[21:12:17] danostrowski: ah, interesting. I wonder if I have to add the join because I'm mis-naming the thing in .includes()
[21:13:14] danostrowski: hm. nope. odd
[21:13:34] danostrowski: guess I have to do both. disappointing, as AR obviously has enough knowledge to do it without specifying both.
[21:14:36] danostrowski: not sure why I need to duplicate my request. :-/
[21:21:23] danostrowski: VeryBewitching: I was confused because I didn't realize that .includes() will run a SECOND query for the included tables, I guess?
[21:22:24] danostrowski: I want ONE query that pre-populates the related models.... which maybe works with .includes() and .joins() put together, but I'm not sure how I'd really verify that it's only doing one query... maybe there's some debugging log I can turn on and just run it in the console...
[21:23:28] danostrowski: VeryBewitching: It actually doesn't say that anywhere.
[21:23:38] danostrowski: VeryBewitching the comment might say it, but the docs there don't mention it at all.
[21:25:58] danostrowski: VeryBewitching it doesn't, really, it's actually quite confusing.
[21:26:01] danostrowski: "However, when using the includes method, it has already eagerly loaded the associated person table, so this block only required a single query. Awesome, right?!"
[21:26:10] danostrowski: but that doesn't actually happen every time with .includes() apparently.
[21:26:20] danostrowski: if the query planner decides that's what it will do, it will do it.
[21:26:40] danostrowski: I get it, but you seem to not be able to force predictable behavior and it was confusing to look at the .to_sql output.
[21:41:18] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:48:50] danostrowski: has joined #ruby
[21:48:51] danostrowski: has joined #RubyOnRails
[22:42:04] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:59:45] danostrowski: has joined #ruby
[22:59:48] danostrowski: has joined #RubyOnRails
[23:05:54] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-14

[16:20:59] danostrowski: has joined #ruby
[18:47:23] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:28:58] danostrowski: has joined #ruby
[20:11:55] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:19:58] danostrowski: has joined #ruby
[21:12:43] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:37:05] danostrowski: has joined #ruby

2016-06-13

[16:09:00] danostrowski: has joined #ruby
[17:24:04] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:26:41] danostrowski: has joined #ruby
[17:40:39] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[18:58:34] danostrowski: has joined #ruby
[19:46:34] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:56:56] danostrowski: has joined #ruby
[20:46:00] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:49:42] danostrowski: has joined #ruby
[21:51:51] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:53:59] danostrowski: has joined #ruby
[23:04:04] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:11:52] danostrowski: has joined #ruby
[23:45:37] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-10

[16:19:08] danostrowski: has joined #ruby
[17:58:04] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[18:04:01] danostrowski: has joined #ruby
[18:28:31] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:11:11] danostrowski: has joined #ruby
[19:16:13] danostrowski: has joined #ruby
[19:43:08] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:55:59] danostrowski: has joined #ruby
[20:43:01] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:05:35] danostrowski: has joined #ruby
[22:36:15] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:38:54] danostrowski: has joined #ruby
[23:19:11] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:20:42] danostrowski: has joined #ruby
[23:29:56] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-09

[17:02:24] danostrowski: has joined #ruby
[17:17:24] danostrowski: Ping timeout: 276 seconds
[17:51:13] danostrowski: has joined #ruby
[18:16:55] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:25:13] danostrowski: has joined #ruby
[21:27:05] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:31:14] danostrowski: has joined #ruby
[22:50:43] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:53:31] danostrowski: has joined #ruby
[23:22:37] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-08

[16:21:42] danostrowski: has joined #ruby
[17:12:52] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:14:36] danostrowski: has joined #ruby
[17:42:03] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:43:31] danostrowski: has joined #ruby
[18:42:15] danostrowski: Ping timeout: 260 seconds
[19:20:18] danostrowski: has joined #ruby
[20:01:56] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:07:50] danostrowski: has joined #ruby
[20:43:55] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:03:47] danostrowski: has joined #ruby
[21:09:34] danostrowski: Ping timeout: 258 seconds

2016-06-07

[16:07:25] danostrowski: has joined #ruby
[16:33:38] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:46:14] danostrowski: has joined #ruby
[18:05:13] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[18:08:29] danostrowski: has joined #ruby
[19:30:50] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:18:20] danostrowski: has joined #ruby
[20:37:11] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:43:39] danostrowski: has joined #ruby
[21:40:36] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:46:05] danostrowski: has joined #ruby
[22:11:41] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:54:09] danostrowski: has joined #ruby
[23:00:38] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-06

[19:26:35] danostrowski: has joined #ruby
[19:27:05] danostrowski: anyone use Sinatra here (possibly on JRuby) and auto-generate API docs from routes? If so, what do you use?
[19:39:49] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:33:04] danostrowski: has joined #ruby
[20:38:39] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:44:56] danostrowski: has joined #ruby
[21:37:03] danostrowski: anyone use Sinatra here (possibly on JRuby) and auto-generate API docs from routes? If so, what do you use?
[21:39:36] danostrowski: It does, but there's also some chatter about it not working on JRuby and it seems quite old with outstanding issues.
[21:39:46] danostrowski: (chatter on the 'net about it not working with JRuby)
[21:40:44] danostrowski: If you're exposing an API to people, it's obviously valuable for them to be able to pull up API docs about how to interact with your service.
[21:41:45] danostrowski: Oh, I see what you mean.
[21:42:09] danostrowski: Sure, I guess I was just hoping there was a tool that did this, I would assume common, task without having to add new documentation to every route.
[21:44:23] danostrowski: OK, will do. Thanks.
[21:45:31] danostrowski: ACTION hopes so, that would be neat.
[22:31:59] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:36:04] danostrowski: has joined #ruby
[23:07:01] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:09:08] danostrowski: has joined #ruby
[23:33:13] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-06-02

[00:05:08] danostrowski: has joined #ruby
[00:09:34] danostrowski: Ping timeout: 240 seconds
[15:48:37] danostrowski: has joined #ruby
[15:52:47] danostrowski: Ping timeout: 244 seconds

2016-06-01

[16:37:36] danostrowski: has joined #ruby
[17:37:24] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:37:53] danostrowski: has joined #ruby
[18:35:08] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:15:50] danostrowski: has joined #ruby
[20:41:00] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:43:33] danostrowski: has joined #ruby
[22:57:14] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:02:10] danostrowski: has joined #ruby
[23:35:20] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-05-27

[22:48:31] danostrowski: has joined #ruby

2016-05-23

[16:10:15] danostrowski: has joined #ruby
[16:28:31] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:39:43] danostrowski: has joined #ruby
[17:26:32] danostrowski: Quit: Textual IRC Client: www.textualapp.com

2016-05-21

[00:22:25] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…

2016-05-20

[00:10:18] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:22:00] danostrowski: has joined #ruby
[16:32:32] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:33:43] danostrowski: has joined #ruby
[17:26:11] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:30:12] danostrowski: has joined #ruby
[17:43:22] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:45:09] danostrowski: has joined #ruby
[18:42:15] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[18:45:39] danostrowski: has joined #ruby
[19:37:07] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:38:10] danostrowski: has joined #ruby
[21:24:54] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:32:14] danostrowski: has joined #ruby
[22:33:54] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:41:39] danostrowski: has joined #ruby
[22:55:02] danostrowski: has joined #ruby
[22:57:52] danostrowski: has joined #ruby
[23:28:43] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:52:46] danostrowski: has joined #ruby

2016-05-19

[16:04:58] danostrowski: has joined #ruby
[16:25:03] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[16:36:23] danostrowski: has joined #ruby
[17:20:46] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[17:28:49] danostrowski: has joined #ruby
[18:57:05] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[19:13:54] danostrowski: has joined #ruby
[19:58:23] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:01:24] danostrowski: has joined #ruby
[20:55:10] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:02:15] danostrowski: has joined #ruby
[21:50:48] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[21:55:03] danostrowski: has joined #ruby

2016-05-18

[18:01:25] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[18:22:07] danostrowski: has joined #ruby
[18:30:02] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:09:56] danostrowski: has joined #ruby
[20:15:14] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:20:46] danostrowski: has joined #ruby
[20:41:28] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[20:54:53] danostrowski: has joined #ruby
[21:59:29] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[22:15:32] danostrowski: has joined #ruby
[23:36:40] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…
[23:39:25] danostrowski: has joined #ruby
[23:51:09] danostrowski: Quit: My Mac has gone to sleep. ZZZzzz…