faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo2 has joined #amber
<FromGitter> <jaysneg> Hi ⏎ My model started read `first_seen TIMESTAMP` field as `nil` ⏎ I am using PG ⏎ crystal 0.35.1 ⏎ Amber 0.35 ... [https://gitter.im/amberframework/amber?at=5fa0060574152347c20c6fcb]
<FromGitter> <Blacksmoke16> id imagine the column names are case sensitive
<FromGitter> <jaysneg> It have the same name `first_seen ` every where
<FromGitter> <jaysneg> and some records its read and other match as `nil`
<FromGitter> <Blacksmoke16> and you're sure the records your fetching just dont have that column set?
<FromGitter> <Blacksmoke16> if you could share your model/code that would be helpful as well
<FromGitter> <jaysneg> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5fa01003d5a5a635f2973e0d]
<FromGitter> <Blacksmoke16> and how are you selecting the records?
<FromGitter> <jaysneg> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5fa01151dc70b5159ae92c9f]
<FromGitter> <jaysneg> > @jaysneg make your model a view - when I am querying the database with joins I always create view models for that purpose. e.g. ⏎ ⏎ thanks
<FromGitter> <Blacksmoke16> yea i dunno, i somehow doubt its a bug tho
t1|Mike has quit [Quit: ZNC 1.8.1-git-8-c1e36077 - https://znc.in]
t1|Mike has joined #amber
t1|Mike has quit [Changing host]
t1|Mike has joined #amber
<FromGitter> <pocketjoso> Hello everyone! ⏎ I'm seeing timeouts for requests to our crystal server, using the Amber framework, after around 120s. ⏎ ⏎ Is there any configuration for this in Amber, or even crystal itself, that can be increased? I know, it's not the most common use case... but I have this need currently. ⏎ ... [https://gitter.im/amberframework/amber?at=5fa03ee72a60f731f72ea2c0]
<FromGitter> <pocketjoso> What actually seems to happen, for some reason, is that the relevant Controller (extended from Amber::Controller::Base) seems to restart, processing the same request again, but never actually responding.. For certain long running request handlers I've also seen some ERR_EMPTY_RESPONSE errors returned.
<FromGitter> <Blacksmoke16> what's the controller action doing that it takes this long? prob not a great practice regardless
<FromGitter> <pocketjoso> yeah I know... it's crunching some numbers, outside of crystal even. ⏎ I don't have the option of changing that currently, unfortunately.
<FromGitter> <Blacksmoke16> fair enough
<FromGitter> <pocketjoso> my plan is to change this setup in the mid-term to avoid these very long requests. ⏎ ⏎ I was just hoping for a quicker fix for the timeout issues. :) Is there any timeout handling for the Controllers (or underlying crystal code) currently, that you know of? ⏎ ⏎ Or should I give up on that idea? I totally agree it's an edge case, but the behavior I am seeing still seems like a bug (that the Controller
<FromGitter> <Blacksmoke16> :shrug: will have to wait for someone more familiar with the implementation. \cc @drujensen
<FromGitter> <pocketjoso> hehe okay thanks anyway
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]