浏览代码

HUE-8888 [docs] Document about the too many document issue

Romain 6 年之前
父节点
当前提交
5ed31b4320

+ 11 - 0
docs/docs-site/content/administrator/administration/operations.md

@@ -178,6 +178,17 @@ Load the documents:
 
     ./build/env/bin/hue loaddata data.json
 
+
+### Slow because too documents
+
+When the database has too many entries, it will cause performance issue. The config check will help superuser to find this issue. Login as superuser and go to “Hue Administration”, this sample screenshot will be displayed in the quick start wizard when the tables have too many entries.
+
+![Check config too many documents](https://cdn.gethue.com/uploads/2019/03/Doc2CountCheck.png)
+
+To clean up Hue database, go to Hue directory and run following clean up command:
+
+    ./build/env/bin/hue desktop_document_cleanup
+
 ## Database
 
 See the dedicated [Database section](/administrator/administration/database/).

+ 2 - 2
docs/docs-site/content/administrator/administration/reference.md

@@ -25,10 +25,10 @@ In practice ~50 users / Hue peak time is the rule of thumb. This is accounting f
 * Database backend should be such as MySql/Postgres/Oracle. Hue does not work on SQLite as it makes concurrent calls to the database.
 * Check the number of documents in the Hue database. If they are too many (more than 100 000), delete the old records:
   Stop the Hue service. Log on to the host of your Hue server. Go to Hue directory and run following clean up [command](/administrator/administration/operations/#commands):
-<pre>
+
     cd /opt/cloudera/parcels/CDH/lib/hue # Hue home directory
     ./build/env/bin/hue desktop_document_cleanup
-</pre>
+
 
 * There are some memory fragmentation issues in Python that manifest in Hue. Check the memory usage of Hue periodically. Browsing HDFS dir with many files, downloading a query result, copying a HDFS files are costly operations memory wise.
 

+ 3 - 3
docs/docs-site/content/user/_index.md

@@ -16,11 +16,11 @@ Please refer to [database list](/administrator/configuration/connectors/#databas
 
 **1. Find or import your data**
 
-Use the left metadata assists to browse your existing data without losing your editor. The top search will look through your saved queries and matching tables, columns and databases. Objects can be tagged for a quick retrieval or assigning a more “humane” name. If the data does not exist yet, just drag & drop it to trigger the Create Table wizard and to import it in just two steps.
+Use the left metadata assists to browse your existing data without losing your editor. The top search will look through your saved queries and matching tables, columns and databases of connected [Data Catalogs](/user/browsing/#data-catalog). Objects can be tagged for a quick retrieval or assigning a more “humane” name. If the data does not exist yet, just drag & drop it to trigger the Create Table wizard and import it in just two steps.
 
 **2. Query your data**
 
-When you found your data, the Editor's autocomplete is extremely powerful as they support 90-100% of the language syntax and will highlight any syntax or logical error. The right assistant provides quick previews of the datasets, which columns or JOINs are popular and recommendations on how to type optimized queries. After the querying, refine your results before exporting to S3/HDFS/ADLS or downloaded as CSV/Excel.
+When you found your data, the [Editor's](/user/querying/#editor) autocomplete is extremely powerful and will highlight any syntax or logical error and provide risk alerts as well as inline documentation. The right assistant provides quick previews of the datasets, which columns or JOINs are popular and recommendations on how to type optimized queries. After the querying, refine your results before exporting to S3/HDFS/ADLS or downloaded as CSV/Excel.
 
 **3. Applications**
 
@@ -30,4 +30,4 @@ When you found your data, the Editor's autocomplete is extremely powerful as the
 * Scheduler: The application lets you build workflows and then schedule them to run regularly automatically. A monitoring interface shows the progress, logs and allow actions like pausing or stopping jobs.
 
 
-Each app of Hue can be extended to support your own languages or apps as detailed in the [developer guide](../../developer/).
+Each app of Hue can be extended to support your own languages or apps as detailed in the [developer guide](/developer/).