Why Is Data Inconsistent When SELECT Statements Without ORDER BY Are Used for Query in Distributed GaussDB?
Symptom
Causes
In distributed GaussDB, data is evenly stored on each DN based on distribution keys. If ORDER BY is not specified in a SELECT query, data is randomly read from DNs. Therefore, data consistency cannot be ensured.
Solution
Use ORDER BY in SQL statements for query. The column followed by ORDER BY is the distribution key.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot