Skip to content
  • Ryuta Kamizono's avatar
    a50eacb0
    Eager loading/preloading should be worked regardless of large number of records · a50eacb0
    Ryuta Kamizono authored
    Since 213796fb, bind params are used for IN clause if enabled prepared
    statements.
    
    Unfortunately, most adapter modules have a limitation for # of bind
    params (mysql2 65535, pg 65535, sqlite3 250000). So if eager loading
    large number of records at once, that query couldn't be sent to the
    database.
    
    Since eager loading/preloading queries are auto-generated by Active
    Record itself, so it should be worked regardless of large number of
    records like as before.
    
    Fixes #33702.
    a50eacb0
    Eager loading/preloading should be worked regardless of large number of records
    Ryuta Kamizono authored
    Since 213796fb, bind params are used for IN clause if enabled prepared
    statements.
    
    Unfortunately, most adapter modules have a limitation for # of bind
    params (mysql2 65535, pg 65535, sqlite3 250000). So if eager loading
    large number of records at once, that query couldn't be sent to the
    database.
    
    Since eager loading/preloading queries are auto-generated by Active
    Record itself, so it should be worked regardless of large number of
    records like as before.
    
    Fixes #33702.
Loading