Search Results for "activerecord-queries"
Lessons
Forum Threads
How to Optimize ActiveRecord Queries with Large Data Sets in Rails 7?
6
General
I'm working with a large dataset in Rails 7 and some of my Active Record queries are getting slow. I've tried using .includes and .select, but performance still lags. What are the best practices fo...
Patrick Stevenson replied
Parallel ActiveRecord Queries with load_async in Rails 7 Discussion
2
General
Are there any downsides to using load_async on everything if we know for a fact that we’ll be using the data during the request? It seems like a no-brainer if we can keep db connections in check?
ActiveRecord queries are running too slow for Rails project
0
Rails
My ActiveRecord queries are taking too much load time and slowing down my API response times. I don't even have much data in the databse, like for accounts table there are only 10 rows. I'm running...
Simmi Badhan posted
How does Searchkick/ElasticSearch impact how I should structure my database indexes?
1
Gems / Libraries
I have a couple of questions about implementing Searchkick and ElasticSearch in general.
* Let's say I'm using ElasticSearch to search for products like so:
```
# usage
Product.search "apples", fi...
Mark Doerr replied
New Position Senior engineer, where to start?
3
Tips
Hi everyone,
I am starting a new position as a senior software engineer. I was told that it is very ruby on rails environment. I want to know what is the best way to get started with learning inte...
Nisad replied
Using Parallel gem to achieve parallel processing in Ruby for increasing performance and making Rails Application faster.
4
Ruby
Hi everyone, I'm trying to decrease API latency in our largely synchronous Ruby on Rails backend. While we use Sidekiq/Shoryuken for background jobs, the bottleneck is within the request-response c...
sygfygfs replied
How can I squish SQL for log tidiness (automatically)?
3
Rails
Hello everyone,
I’m dealing with a challenge in my codebase where there are numerous multiline SQL heredocs being logged. While these may be helpful for local debugging, they become a hassle when ...
Simon Deis replied
Question about SQL Queries and my routes
0
Rails
## Hello
I'm a beginner on Rails and I have questions about my forum project.
I have some Categories which can contain many Themes. And Themes can contain many Topics
Here is what I want with m...
Neb19 posted
Huge syslog file in production
3
Rails
Hi,
We have a rails app with sidekiq in an Ubuntu 18.04 machine hosted in AWS.
We've recently started to run out of space in our disk. I've then noticed that we have a huge /var/log/syslog file, ...
Chris Oliver replied
Solved
Trouble with a lending library query
3
Databases
Let's say you operate a library.
You have so many patrons and so many books you need a Rails app and database to keep your sanity.
The basic schema looks something like this:
```ruby
create_tabl...
How do I calculate a computed value in a model when showing or indexing over that model in its controller?
1
Rails
I'm new to Rails but not new to programming or webdev.
I have a `Student` model that uses a service object to pull data from Google Cloud Firestore for its `level` attribute, an integer. I have ho...
Jordan T-H replied
Solved
Hatchbox deployment questions
20
Rails
Im launching my app and using your Hatchbox service to help. I was planning on using digitaloceans managed database and wondering how that works with hatchbox and if I need to change anything in m...
Alex Deering replied
How do I use includes to return all columns of associated table?
1
Rails
I hope someone here can help me. There's a lot to ActiveRecord I'm yet to understand and I'm a little lost at the moment.
I have three models. `Issue`, `Language`, `Labels`.
An issue has a langua...
Oliver replied
Custom Validations Issue
6
Rails
I have a custom validator that I would like to protect some data on my Users to Sites has_many through relaitonship. There is one extra piece of data on the `sites_users` join table `is_default` w...
Thomas Bush replied
Solved
Sortable Drag and Drop Discussion
29
General
Just a heads up, in your Gemfile, bootstrap 4 beta no longer uses tether for tooltips, now uses popper.js which is now a dependency of the bootstrap 4 gem
robert replied
Preferences & Settings with ActiveRecord::Store Discussion
24
General
Great stuff
sthapit replied
Rails Counter Caches Discussion
14
General
I feel this video was cause of me in the forum haha!A+++
Exporting Records To CSV Discussion
58
General
Is there some magic happening when you call @users.to_csv ?? As I understand @users is an ActiveRecord::Relation, how is the method 'to_csv' sended to the User class ??
Nathan Anderson replied
Comments With Polymorphic Associations Discussion
98
General
Awesome Video. I really liked and refreshed my concepts about Polymorphic Associations. Thanks :)
Karl McCollester replied
Setting Up Rails 4 with MongoDB and Mongoid Discussion
11
General
If you have time could you please make a guide for OSX Users? :)
Joe Guerra replied