hyperloop-rails / powerstation Goto Github PK
View Code? Open in Web Editor NEWA Tool for Detecting Performance Bugs in Rails Applications
Home Page: https://hyperloop-rails.github.io/
License: BSD 2-Clause "Simplified" License
A Tool for Detecting Performance Bugs in Rails Applications
Home Page: https://hyperloop-rails.github.io/
License: BSD 2-Clause "Simplified" License
I believe more current versions of ActiveRecord address this. Notice that AR is using LIMIT 1
and isn't loading the result set into memory.
irb(main):007:0> User.where(email: 'email').exists?
User Exists (1.0ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'email' LIMIT 1
=> false
irb(main):008:0> User.where(email: 'email').any?
User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'email' LIMIT 1
=> false
irb(main):009:0> User.find_by(email: 'email')
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'email' LIMIT 1
=> nil
irb(main):010:0> User.where(email: 'email').first
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'email' ORDER BY `users`.`id` ASC LIMIT 1
=> nil
Credit to @mccallumjack.
It looks like the script greps everything inside the current directory.
Some directories should likely be excluded by default, like the /log
directory, which frequently contains large files that don't have application code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.