TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Goromlagche
ActiveRecord has a warn_on_records_fetched_greater_than config. If you use it “config.active_record.warn_on_records_fetched_greater_than = 1500” then if you use a Model.all and the records are > 1500 it will long a warning. Generally if the row count is high, you would want to use “find_in_batches” rather than “all”. The original issue https://github.com/rails/rails/issues/16463
Published
Author
user-image
Revath
use credentials('global-cred-id') to use Jenkins credentials inside pipline Eg: DANGER_GITHUB_API_TOKEN = credentials('78c4b861-f9e8-44b8-8510-4d734ab752a0')
Published
Author
user-image
Amit
ncal
Published
Author
user-image
Amit
ncal

Showing page 57 of 83

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals