summaryrefslogtreecommitdiff
path: root/lib/gitlab/snippet_search_results.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-4/+1
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-30/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-091-1/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-301-16/+25
|
* Load search result counts asynchronouslyMarkus Koller2019-08-121-0/+11
| | | | | | Querying all counts for the different search results in the same request led to timeouts, so we now only calculate the count for the *current* search results, and request the others in separate asynchronous calls.
* Enable frozen string for lib/gitlab/*.rbgfyoung2018-10-221-0/+2
|
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Use limit for search count queriessearch-100Jan Provaznik2018-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
* Reduce query count for snippet searchsnippets-search-performancePhil Hughes2017-02-161-2/+2
| | | | | | | Recudes the number of queries within the snippet search from approx. 50 to approx. 14 by preloading the authors Part of #27392
* Clean up search result classesclean_up_search_classesValery Sizov2016-09-061-4/+0
|
* Refactor Gitlab::SnippetSearchResultsYorick Peterse2016-03-111-5/+5
| | | | This removes the need for plucking snippet IDs into memory.
* one more improvement to snippet searchValery Sizov2016-02-051-1/+1
|
* Faster snippet searchValery Sizov2016-02-051-6/+2
|
* Backport some changes from EEes_backportValery Sizov2016-01-221-80/+2
|
* Updating to persist a params snippets variableCharles Bushong2014-09-051-7/+38
|
* Changing some formatting for the Hound, modifying some UI textCharles Bushong2014-09-021-7/+7
|
* Adding in snippet search functionalityCharles Bushong2014-08-291-0/+100
http://feedback.gitlab.com/forums/176466-general/suggestions/5529795-search-though-snippets