Skip to content

log only submitted searches to the recent_searches table

Administrator requested to merge 4067-recent-queries into master

Created by: ijt

Also, only spawn a single goroutine for this and send queries to it over a buffered channel to avoid resource leakage.

Fixes https://github.com/sourcegraph/sourcegraph/issues/4067

Before: Screen Shot 2019-06-13 at 15 43 01

After: Screen Shot 2019-06-13 at 15 43 28

Test plan: manually tested locally

Merge request reports

Loading