diff --git a/config/global.ini.php b/config/global.ini.php
index 53e6f758cfd692e01eddc9d7e3c03de135482ec2..c8eb24598133886fcee26d5a3b38e942a6559c4f 100644
--- a/config/global.ini.php
+++ b/config/global.ini.php
@@ -154,6 +154,10 @@ browser_archiving_disabled_enforce = 0
 ;       this will only affect custom segments added or modified after this setting is changed.
 enable_create_realtime_segments = 1
 
+; Whether to enable the "Suggest values for segment" in the Segment Editor panel.
+; Set this to 0 in case your Piwik database is very big, and suggested values may not appear in time
+enable_segment_suggested_values = 1
+
 ; this action name is used when the URL ends with a slash /
 ; it is useful to have an actual string to write in the UI
 action_default_name = index
diff --git a/plugins/API/API.php b/plugins/API/API.php
index c0da00ced5539fe6bc6e61e78db1e547ec63b664..bb2d4af6302707aa59af35737fb586f961ab9851 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -570,6 +570,9 @@ class API extends \Piwik\Plugin\API
      */
     public function getSuggestedValuesForSegment($segmentName, $idSite)
     {
+        if(empty(Config::getInstance()->General['enable_segment_suggested_values'])) {
+            return array();
+        }
         Piwik::checkUserHasViewAccess($idSite);
 
         $maxSuggestionsToReturn = 30;