- 15 Oct, 2015 9 commits
-
-
Kamil Trzcinski authored
-
Alex Lossent authored
Password can now be specified at the same time as the new URL, and the service template admin pages now work.
-
Yorick Peterse authored
-
Yorick Peterse authored
-
Yorick Peterse authored
By comparing objects in Ruby we can greatly improve the performance of this method. In the worst case (should no data be eager loaded) this will run the same amount of queries as before, in the best case (when data _is_ eager loadeD) it requires no queries at all. The added benchmark used to produce around 273 iterations per second. With this commit this has been increased to almost 40 000 iterations per second: a speedup of roughly 145 times. Combined with eager loading Note associations this results in about 30 queries less when viewing a single issue, this in turn cuts down the loading time by 30-40%.
-
Yorick Peterse authored
This ensures that when viewing an issue each note already has the associated project, project members, group and group members available. Since this information is requres for every note this results in quite the reduction of SQL queries being executed.
-
Yorick Peterse authored
-
Yorick Peterse authored
This ensures we don't end up running N+1 queries for the objects in the affected collections.
-
Yorick Peterse authored
Performance is improved in two steps: 1. On PostgreSQL an expression index is used for checking lower(email) and lower(username). 2. The check to determine if we're searching for a username or Email is moved to Ruby. Thanks to @haynes for suggesting and writing the initial implementation of this. Moving the check to Ruby makes this method an additional 1.5 times faster compared to doing the check in the SQL query. With performance being improved I've now also tweaked the amount of iterations required by the User.by_login benchmark. This method now runs between 900 and 1000 iterations per second.
-
- 14 Oct, 2015 12 commits
-
-
Valery Sizov authored
This reverts commit d372a720715a.
-
Valery Sizov authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
Slightly refactor runner status detection: moving it to Runner class Signed-off-by:
Kamil Trzcinski <ayufan@ayufan.eu>
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Alex Lossent authored
It now allows to specify a password at the same time as the new URL, and works on the service template admin pages.
-
Kamil Trzcinski authored
-
Douwe Maan authored
-
- 13 Oct, 2015 1 commit
-
-
Kamil Trzcinski authored
-
- 12 Oct, 2015 13 commits
-
-
Kamil Trzcinski authored
Signed-off-by:
Kamil Trzcinski <ayufan@ayufan.eu>
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Kamil Trzcinski authored
-
Douwe Maan authored
-
Douwe Maan authored
-
Douwe Maan authored
-
Kamil Trzcinski authored
-
Valery Sizov authored
-
Kamil Trzcinski authored
-
Douwe Maan authored
-
Kamil Trzcinski authored
-
- 09 Oct, 2015 1 commit
-
-
Stan Hu authored
c6d6056cfe38 included new filters but made it hard to determine which dropdown did what. This patch restores the original placeholders.
-
- 08 Oct, 2015 3 commits
-
-
Ben Boeckel authored
-
Ben Boeckel authored
-
Yorick Peterse authored
By using a JOIN we can remove the need for using 2 separate queries to find a project by its namespace. Combined with an index (only needed for PostgreSQL) this reduces the query time from ~245 ms (~520 ms for the first call) down to roughly 10 ms (~15 ms for the first call).
-
- 07 Oct, 2015 1 commit
-
-
Yorick Peterse authored
On PostgreSQL these queries use LOWER(...) to compare columns and values. For MySQL a regular WHERE is performed as MySQL is already case-insensitive.
-