_whitelogger has quit [Remote host closed the connection]
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 258 seconds]
feepbot has joined #amber
<FromGitter>
<charleystran> are there any special restrictions to getting the size of an array? I have an array with 36k items and when I call size on it I only get 36
<FromGitter>
<Blacksmoke16> mmm array of what?
<FromGitter>
<Blacksmoke16> im thinking you just dont have 36k items in your array
<FromGitter>
<charleystran> database records, i dont think its actually any array, but whatever the results set is. I am writing them all to a CSV for some machine learning tasks. Everything loops and iterated just fine, but thee `.size` is off
<FromGitter>
<Blacksmoke16> what if you do `.to_a.size`?
<FromGitter>
<Blacksmoke16> might be a Granite collection if you're fetching it via `.all`
<FromGitter>
<charleystran> ill try that
<FromGitter>
<charleystran> that gives me `in sam.cr:31: undefined method 'to_a' for Granite::Query::Builder(Race)`
<FromGitter>
<Blacksmoke16> oh so you have a query builder
<FromGitter>
<Blacksmoke16> just do a `.select` at the end