# The Principle of TiDB Lightning

__*The Lightning Principle*__
__*Lightning architecture*__

![left](./student-guide/diagram/TiDBLightningPI0_en_001_20220617.png)
-------------------------------------------------------------
Before importing data, tidb-lightning automatically switches the TiKV cluster to "import mode" (import mode) to optimize write efficiency and stop automatic compression.