executing raw sql in rails vs java
I am using开发者_如何学JAVA raw mysql queries in my rails application. but the response time which i was getting while executing the same mysql queries in java was much better as i am getting in rails?
What are the bottleneck in running raw sql in rails as compared to java?
Speed of the code being executed, including the database driver.
Ruby is regarded as slower to execute than Java. See benchmarks like this (but take them as a rough guide)
精彩评论