-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e70ea00
commit ef770ed
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ef770ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an old change, but do you remember why you did this? This adds an unnecessary (?) extra round trip to the db.
I'm working on a project where DBs are located far away, and each such round trip to the database adds an extra 20-100ms to the pageload.
ef770ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell why is the
use database
sql command exist for non-socket dsns? I think it is an unnecessary query because hostgetHostDsn()
returns with database name. I am testing Laravel 5.5 on high load web application, thisuse database
command adds ~1ms to response time.