# Brief Description Of Tidb Writes Process (A)


![left](./student-guide/diagram/26-TiDB-write-process-01-01.png)

------------------------------------------------------------
Brief description of TiDB read process

For ease of understanding, let's first briefly understand the details of TiDB's internal processing read process. The following is a simplified description:

The steps of the TiDB Server data read process are as follows:
- Read an SQL from the client's socket
- Get a token
- Get TSO from PD
- Use Parser to convert SQL parse to AST
- Logic optimization, physical optimization
- Compile AST as execution plan
- Execute the execution plan obtained in the previous step
  - Executor.Open (): The lowest Executor constructs multiple requests to be sent to TiKV based on the key range processed by this SQL, and distributes these request to TiKV through distsql's API
  - Executor.Next (): The lowest Executor will return the data return by distsql to the upper Executor
