Skip to main content

Questions tagged [rails]

Rails is a cross-platform model-view-controller-centric application framework for Ruby. Use this tag for database-related Rails questions.

1 vote
1 answer
381 views

I have a few UPDATE calls on my production system that are running slow and I've been instructed to try and optimize them. I'm reading into how to understand EXPLAIN with (ANALYZE, BUFFERS) as well to ...
aarona's user avatar
  • 113
0 votes
1 answer
86 views

I am looking to create a Rails application to interface between users and Azure ChatGPT. I will include my ERD diagram showing a couple of options in building the database tables and table ...
Chris's user avatar
  • 101
0 votes
0 answers
39 views

I've mostly used managed database (AWS RDS) for production. I was fiddling with docker and was wondering if it's a good idea to have containerised postgres database with data-volume? I feel it may not ...
Indyarocks's user avatar
0 votes
0 answers
267 views

The JDBC connection I should use is defined in Oracle SQL Developer with the following syntax: jdbc:oracle:thin:@ldap://intranet.oid-01.dama.ch:3063/EDWHPD,cn=OracleContext,dc=emea,dc=dama,dc=ch But ...
user1185081's user avatar
0 votes
0 answers
108 views

My application is running on Rails 5.4.2/Ruby 2.7 and relies on an Oracle 19c. I used to query an Oracle database through a classical OCI connection configuration: config/database.yml development: ...
user1185081's user avatar
1 vote
0 answers
48 views

I am working on one Flask project and one Ruby on Rails project, both using Postgres. When I migrate in Rails, the changes are implemented both in this database and in the database for the Flask ...
пaean's user avatar
  • 11
1 vote
0 answers
51 views

Lets say I have inventory_receives table which contain many inventory_receive_entry and also I have inventory table which contain one inventory_receive_entry Then in my application inventory_receives ...
joyoy's user avatar
  • 13
1 vote
0 answers
279 views

I'm not sure if this is a rails issue, or a database issue, but as this seems to be a schema specific issue, I'm looking at it from the database side first. (Other customers with the same setup on ...
Dave Smylie's user avatar
1 vote
1 answer
3k views

I have a User table and a Log table. I need to update a field on the User table and insert a new entry on the Log table recording the update. I have written the statement for the update: UPDATE ...
vicocas's user avatar
  • 125
1 vote
1 answer
510 views

I'm using Rails 6 with activerecord-oracle_enhanced-adapter adapter for Oracle 11 XE database. At the beginning of the project I was working with Postgres, but due to customer requirements I had to ...
Grizz's user avatar
  • 11
0 votes
1 answer
58 views

Here is my basic schema wbs_item +----+-----------+-----------+ | id | name | parent_id | +----+-----------+-----------+ | 1 | Materials | | +----+-----------+-----------+ | 2 | ...
Dan Tappin's user avatar
0 votes
0 answers
778 views

I have a Rails app backed by an Azure-managed Postgres database and I use NewRelic for monitoring. What I've noticed is that the INSERT performance degrades almost linearly over time - what started ...
jordi's user avatar
  • 1
-4 votes
1 answer
3k views

I am trying to delete a LocalTax record from Postgres. Currently, I don't think there are any Employee records that reference the LocalTax in question (8). => SELECT COUNT(*) FROM employees WHERE ...
mitya's user avatar
  • 7
1 vote
2 answers
606 views

In my case I have two MySQL servers. One is master and second one is slave. When slave is not available, my application can read and write from/to master. When master is not available, assume there ...
laimison's user avatar
  • 113
1 vote
1 answer
2k views

I have a query that's performing terribly after adding a new column. Here's the slow version: SELECT COUNT(*) FROM activities INNER JOIN "users" ON "users"."id" = "activities"."user_id" AND "users"."...
aardvarkk's user avatar
  • 235

15 30 50 per page