MySQL 8.0 Reference Manual(讀書筆記61節--Examining Server Thread (Process) Information(2))

来源:https://www.cnblogs.com/xuliuzai/p/18225552
-Advertisement-
Play Games

隨著大數據技術和人工智慧的發展,企業逐漸意識到構建一個集中化的指標管理平臺的必要性。這樣的平臺旨在解決幾個核心問題:首先,確保所有部門都能通過統一的入口提交指標需求,實現需求的透明化管理;其次,建立完善的指標管理體系,涵蓋從需求定義、模型設計、數據集成、開發實施到應用監控的全鏈條;第三,通過自動化和 ...


5.General Thread States

The following list describes thread State values that are associated with general query processing and not more specialized activities such as replication. Many of these are useful only for finding bugs in the server.

• After create

This occurs when the thread creates a table (including internal temporary tables), at the end of the function that creates the table. This state is used even if the table could not be created due to some error.

• altering table

The server is in the process of executing an in-place ALTER TABLE.

• Analyzing

The thread is calculating a MyISAM table key distributions (for example, for ANALYZE TABLE).

• checking permissions

The thread is checking whether the server has the required privileges to execute the statement.

• Checking table

The thread is performing a table check operation.

• cleaning up

The thread has processed one command and is preparing to free memory and reset certain state variables.

 • closing tables

The thread is flushing the changed table data to disk and closing the used tables. This should be a fast operation. If not, verify that you do not have a full disk and that the disk is not in very heavy use.

• committing alter table to storage engine

The server has finished an in-place ALTER TABLE and is committing the result.

• converting HEAP to ondisk

The thread is converting an internal temporary table from a MEMORY table to an on-disk table.

• copy to tmp table

The thread is processing an ALTER TABLE statement. This state occurs after the table with the new structure has been created but before rows are copied into it.For a thread in this state, the Performance Schema can be used to obtain about the progress of the copy operation.

• Copying to group table

If a statement has different ORDER BY and GROUP BY criteria【kraɪ'tɪriə 標準;(評判或作決定的)準則;原則;】, the rows are sorted by group and copied to a temporary table.

• Copying to tmp table

The server is copying to a temporary table in memory.

• Copying to tmp table on disk

The server is copying to a temporary table on disk. The temporary result set has become too large. Consequently【ˈkɑːnsɪkwentli 因此;所以;】, the thread is changing the temporary table from in-memory to disk-based format to save memory.

• Creating index

The thread is processing ALTER TABLE ... ENABLE KEYS for a MyISAM table.

• Creating sort index

The thread is processing a SELECT that is resolved using an internal temporary table.

• creating table

The thread is creating a table. This includes creation of temporary tables.

• Creating tmp table

The thread is creating a temporary table in memory or on disk. If the table is created in memory but later is converted to an on-disk table, the state during that operation is Copying to tmp table on disk.

• deleting from main table

The server is executing the first part of a multiple-table delete. It is deleting only from the first table, and saving columns and offsets to be used for deleting from the other (reference) tables.

• deleting from reference tables

The server is executing the second part of a multiple-table delete and deleting the matched rows from the other tables.

• discard_or_import_tablespace

The thread is processing an ALTER TABLE ... DISCARD TABLESPACE or ALTER TABLE ... IMPORT TABLESPACE statement. 【discard:dɪˈskɑːrd , ˈdɪskɑːrd  丟棄;拋棄;墊(牌);打出(無用的牌);

• end

This occurs at the end but before the cleanup of ALTER TABLE, CREATE VIEW, DELETE, INSERT, SELECT, or UPDATE statements. For the end state, the following operations could be happening:

  • Writing an event to the binary log
  • Freeing memory buffers, including for blobs【blɑbz (顏色的)一小片,斑點;(尤指液體的)一點,一滴;】

• executing

The thread has begun executing a statement.

• Execution of init_command

The thread is executing statements in the value of the init_command system variable.

• freeing items

The thread has executed a command. This state is usually followed by cleaning up.

• FULLTEXT initialization

The server is preparing to perform a natural-language full-text search.

• init

This occurs before the initialization of ALTER TABLE, DELETE, INSERT, SELECT, or UPDATE statements. Actions taken by the server in this state include flushing the binary log and the InnoDB log.

• Killed

Someone has sent a KILL statement to the thread and it should abort next time it checks the kill flag. The flag is checked in each major loop in MySQL, but in some cases it might still take a short time for the thread to die. If the thread is locked by some other thread, the kill takes effect as soon as the other thread releases its lock.

• Locking system tables

The thread is trying to lock a system table (for example, a time zone or log table).

• logging slow query

The thread is writing a statement to the slow-query log.

• login

The initial state for a connection thread until the client has been authenticated successfully.

• manage keys

The server is enabling or disabling a table index.

• Opening system tables

The thread is trying to open a system table (for example, a time zone or log table).

• Opening tables

The thread is trying to open a table. This is should be very fast procedure, unless something prevents opening. For example, an ALTER TABLE or a LOCK TABLE statement can prevent opening a table until the statement is finished. It is also worth checking that your table_open_cache value is large enough. For system tables, the Opening system tables state is used instead.

• optimizing

The server is performing initial optimizations for a query.

• preparing

This state occurs during query optimization.

• preparing for alter table

The server is preparing to execute an in-place ALTER TABLE.

• Purging old relay logs

The thread is removing unneeded relay log files.

• query end

This state occurs after processing a query but before the freeing items state.

• Receiving from client

The server is reading a packet from the client.

• Removing duplicates

The query was using SELECT DISTINCT in such a way that MySQL could not optimize away the distinct operation at an early stage. Because of this, MySQL requires an extra stage to remove all duplicated rows before sending the result to the client.

• removing tmp table

The thread is removing an internal temporary table after processing a SELECT statement. This state is not used if no temporary table was created.

• rename

The thread is renaming a table.

• rename result table

The thread is processing an ALTER TABLE statement, has created the new table, and is renaming it to replace the original table.

• Reopen tables

The thread got a lock for the table, but noticed after getting the lock that the underlying table structure changed. It has freed the lock, closed the table, and is trying to reopen it.

• Repair by sorting

The repair code is using a sort to create indexes.

• Repair done

The thread has completed a multithreaded repair for a MyISAM table.

• Repair with keycache

The repair code is using creating keys one by one through the key cache. This is much slower than Repair by sorting.

• Rolling back

The thread is rolling back a transaction.

• Saving state

For MyISAM table operations such as repair or analysis, the thread is saving the new table state to the .MYI file header. State includes information such as number of rows, the AUTO_INCREMENT counter, and key distributions.

• Searching rows for update

The thread is doing a first phase to find all matching rows before updating them. This has to be done if the UPDATE is changing the index that is used to find the involved【ɪnˈvɑːlvd 參與;卷入的;關註;有關聯;關係密切;複雜難解的;作為一部分;耗費很多時間;】 rows.

• Sending data

Prior to MySQL 8.0.17: The thread is reading and processing rows for a SELECT statement, and sending data to the client. Because operations occurring during this state tend to perform large amounts of disk access (reads), it is often the longest-running state over the lifetime of a given query. MySQL 8.0.17 and later: This state is no longer indicated separately, but rather is included in the Executing state.

• Sending to client

The server is writing a packet to the client.

• setup

The thread is beginning an ALTER TABLE operation.

• Sorting for group The thread is doing a sort to satisfy a GROUP BY.

• Sorting for order

The thread is doing a sort to satisfy an ORDER BY.

 • Sorting index

The thread is sorting index pages for more efficient【ɪˈfɪʃnt 有效率的;效率高的;有能力的;】 access during a MyISAM table optimization operation.

• Sorting result

For a SELECT statement, this is similar to Creating sort index, but for nontemporary tables.

• starting

The first stage at the beginning of statement execution.

• statistics

The server is calculating statistics to develop a query execution plan. If a thread is in this state for a long time, the server is probably disk-bound performing other work.

• System lock

The thread has called mysql_lock_tables() and the thread state has not been updated since. This is a very general state that can occur for many reasons. For example, the thread is going to request or is waiting for an internal or external system lock for the table. This can occur when InnoDB waits for a table-level lock during execution of LOCK TABLES. If this state is being caused by requests for external locks and you are not using multiple mysqld servers that are accessing the same MyISAM tables, you can disable external system locks with the --skip-external-locking option. However, external locking is disabled by default, so it is likely that this option has no effect. For SHOW PROFILE, this state means the thread is requesting the lock (not waiting for it). For system tables, the Locking system tables state is used instead.

• update

The thread is getting ready to start updating the table.

• Updating

The thread is searching for rows to update and is updating them.

• updating main table

The server is executing the first part of a multiple-table update. It is updating only the first table, and saving columns and offsets to be used for updating the other (reference) tables.

• updating reference tables

The server is executing the second part of a multiple-table update and updating the matched rows from the other tables.

• User lock

The thread is going to request or is waiting for an advisory lock requested with a GET_LOCK() call. For SHOW PROFILE, this state means the thread is requesting the lock (not waiting for it).

• User sleep

The thread has invoked a SLEEP() call.

• Waiting for commit lock

FLUSH TABLES WITH READ LOCK is waiting for a commit lock.

• waiting for handler commit

The thread is waiting for a transaction to commit versus other parts of query processing.

• Waiting for tables

The thread got a notification that the underlying structure for a table has changed and it needs to reopen the table to get the new structure. However, to reopen the table, it must wait until all other threads have closed the table in question.

This notification takes place if another thread has used FLUSH TABLES or one of the following statements on the table in question: FLUSH TABLES tbl_name, ALTER TABLE, RENAME TABLE, REPAIR TABLE, ANALYZE TABLE, or OPTIMIZE TABLE.

• Waiting for table flush

The thread is executing FLUSH TABLES and is waiting for all threads to close their tables, or the thread got a notification that the underlying structure for a table has changed and it needs to reopen the table to get the new structure. However, to reopen the table, it must wait until all other threads have closed the table in question.

This notification takes place if another thread has used FLUSH TABLES or one of the following statements on the table in question: FLUSH TABLES tbl_name, ALTER TABLE, RENAME TABLE, REPAIR TABLE, ANALYZE TABLE, or OPTIMIZE TABLE.

• Waiting for lock_type lock

The server is waiting to acquire a THR_LOCK lock or a lock from the metadata locking subsystem, where lock_type indicates the type of lock.

This state indicates a wait for a THR_LOCK:

  • Waiting for table level lock

      These states indicate a wait for a metadata lock:

  • Waiting for event metadata lock
  • Waiting for global read lock
  • Waiting for schema metadata lock
  • Waiting for stored function metadata lock
  • Waiting for stored procedure metadata lock
  • Waiting for table metadata lock
  • Waiting for trigger metadata lock

• Waiting on cond

A generic state in which the thread is waiting for a condition to become true. No specific state information is available.

• Writing to net

The server is writing a packet to the network.

6 Replication Source Thread States

The following list shows the most common states you may see in the State column for the Binlog Dump thread of the replication source. If you see no Binlog Dump threads on a source, this means that replication is not running; that is, that no replicas are currently connected.

In MySQL 8.0.26, incompatible【ˌɪnkəmˈpætəbl 不相容的,不相容的,互斥的;(與某事物)不一致,不相配;不協調的;(與某物)不匹配;(與某人)合不來的,不能和睦相處;(血型、機體組織)不能配合】 changes were made to instrumentation【ˌɪnstrəmenˈteɪʃn (一套)儀器,儀錶;器樂譜寫;】 names, including the names of thread stages, containing the terms “master”, which is changed to “source”, “slave”, which is changed to “replica”, and “mts” (for “multithreaded slave”), which is changed to “mta” (for “multithreaded applier”). Monitoring tools that work with these instrumentation names might be impacted. If the incompatible changes have an impact for you, set the terminology_use_previous system variable to BEFORE_8_0_26 to make MySQL Server use the old versions of the names for the objects specified in the previous list. This enables monitoring tools that rely on the old names to continue working until they can be updated to use the new names.

Set the terminology_use_previous system variable with session scope【skoʊp (題目、組織、活動等的)範圍;(做或實現某事的)機會,能力;…鏡(觀察儀器);】 to support individual functions, or global scope to be a default for all new sessions. When global scope is used, the slow query log contains the old versions of the names.

• Finished reading one binlog; switching to next binlog

The thread has finished reading a binary log file and is opening the next one to send to the replica.

• Master has sent all binlog to slave; waiting for more updates

From MySQL 8.0.26: Source has sent all binlog to replica; waiting for more updates

The thread has read all remaining updates from the binary logs and sent them to the replica. The thread is now idle【[ˈaɪdl 空閑的;閑置的;懶惰的;閑散的;懈怠的;沒有工作的;漫無目的的;】, waiting for new events to appear in the binary log resulting from new updates occurring on the source.

• Sending binlog event to slave

From MySQL 8.0.26: Sending binlog event to replica

Binary logs consist of events, where an event is usually an update plus some other information. The thread has read an event from the binary log and is now sending it to the replica.

• Waiting to finalize termination

A very brief state that occurs as the thread is stopping.

7 Replication I/O (Receiver) Thread States

The following list shows the most common states you see in the State column for a replication I/O (receiver) thread on a replica server. This state also appears in the Replica_IO_State column displayed by SHOW REPLICA STATUS (or before MySQL 8.0.22, SHOW REPLICA STATUS), so you can get a good view of what is happening by using that statement.

 In MySQL 8.0.26, incompatible changes were made to instrumentation names, including the names of thread stages, containing the terms “master”, which is changed to “source”, “slave”, which is changed to “replica”, and “mts” (for “multithreaded slave”), which is changed to “mta” (for “multithreaded applier”). Monitoring tools that work with these instrumentation names might be impacted. If the incompatible changes have an impact for you, set the terminology_use_previous system variable to BEFORE_8_0_26 to make MySQL Server use the old versions of the names for the objects specified in the previous list. This enables monitoring tools that rely on the old names to continue working until they can be updated to use the new names.

Set the terminology_use_previous system variable with session scope to support individual functions, or global scope to be a default for all new sessions. When global scope is used, the slow query log contains the old versions of the names.

• Checking master version

From MySQL 8.0.26: Checking source version

A state that occurs very briefly【ˈbriːfli 簡要地;簡短地;短暫地;暫時地;】, after the connection to the source is established.

• Connecting to master

From MySQL 8.0.26: Connecting to source

The thread is attempting to connect to the source.

• Queueing master event to the relay log

From MySQL 8.0.26: Queueing source event to the relay log

The thread has read an event and is copying it to the relay log so that the SQL thread can process it.

• Reconnecting after a failed binlog dump request

The thread is trying to reconnect to the source.

• Reconnecting after a failed master event read

From MySQL 8.0.26: Reconnecting after a failed source event read

The thread is trying to reconnect to the source. When connection is established again, the state becomes Waiting for master to send event.

• Registering slave on master

From MySQL 8.0.26: Registering replica on source

A state that occurs very briefly after the connection to the source is established.

• Requesting binlog dump

A state that occurs very briefly, after the connection to the source is established. The thread sends to the source a request for the contents of its binary logs, starting from the requested binary log file name and position.

• Waiting for its turn to commit

A state that occurs when the replica thread is waiting for older worker threads to commit if replica_preserve_commit_order or slave_preserve_commit_order is enabled.

• Waiting for master to send event

From MySQL 8.0.26: Waiting for source to send event

The thread has connected to the source and is waiting for binary log events to arrive. This can last for a long time if the source is idle. If the wait lasts for replica_net_timeout or slave_net_timeout seconds, a timeout occurs. At that point, the thread considers the connection to be broken and makes an attempt to reconnect.

• Waiting for master update

From MySQL 8.0.26: Waiting for source update

The initial state before Connecting to master or Connecting to source.

• Waiting for slave mutex on exit

From MySQL 8.0.26: Waiting for replica mutex on exit

A state that occurs briefly as the thread is stopping.

• Waiting for the slave SQL thread to free enough relay log space

From MySQL 8.0.26: Waiting for the replica SQL thread to free enough relay log space

You are using a nonzero relay_log_space_limit value, and the relay logs have grown large enough that their combined size exceeds this value. The I/O (receiver) thread is waiting until the SQL (applier) thread frees enough space by processing relay log contents so that it can delete some relay log files.

• Waiting to reconnect after a failed binlog dump request

If the binary log dump request failed (due to disconnection), the thread goes into this state while it sleeps, then tries to reconnect periodically. The interval between retries can be specified using the CHANGE REPLICATION SOURCE TO statement (from MySQL 8.0.23) or CHANGE MASTER TO statement (before MySQL 8.0.23).

• Waiting to reconnect after a failed master event read

From MySQL 8.0.26: Waiting to reconnect after a failed source event read

An error occurred while reading (due to disconnection). The thread is sleeping for the number of seconds set by the CHANGE REPLICATION SOURCE TO statement (from MySQL 8.0.23) or CHANGE MASTER TO statement (before MySQL 8.0.23), which defaults to 60, before attempting to reconnect.

8 Replication SQL Thread States

The following list shows the most common states you may see in the State column for a replication SQL thread on a replica server.

In MySQL 8.0.26, incompatible changes were made to instrumentation names, including the names of thread stages, containing the terms “master”, which is changed to “source”, “slave”, which is changed to “replica”, and “mts” (for “multithreaded slave”), which is changed to “mta” (for “multithreaded applier”). Monitoring tools that work with these instrumentation names might be impacted. If the incompatible changes have an impact for you, set the terminology_use_previous system variable to BEFORE_8_0_26 to make MySQL Server use the old versions of the names for the objects specified in the previous list. This enables monitoring tools that rely on the old names to continue working until they can be updated to use the new names.

Set the terminology_use_previous system variable with session scope to support individual functions, or global scope to be a default for all new sessions. When global scope is used, the slow query log contains the old versions of the names.

• Making temporary file (append) before replaying LOAD DATA INFILE

The thread is executing a LOAD DATA statement and is appending the data to a temporary file containing the data from which the replica reads rows.

• Making temporary file (create) before replaying LOAD DATA INFILE

The thread is executing a LOAD DATA statement and is creating a temporary file containing the data from which the replica reads rows. This state can only be encountered if the original LOAD DATA statement was logged by a source running a version of MySQL lower than MySQL 5.0.3.

• Reading event from the relay log

The thread has read an event from the relay log so that the event can be processed.

• Slave has read all relay log; waiting for more updates

From MySQL 8.0.26: Replica has read all relay log; waiting for more updates The thread has processed all events in the relay log files, and is now waiting for the I/O (receiver) thread to write new events to the relay log.

• Waiting for an event from Coordinator

Using the multithreaded replica (replica_parallel_workers or slave_parallel_workers is greater than 1), one of the replica worker threads is waiting for an event from the coordinator thread.

• Waiting for slave mutex on exit

From MySQL 8.0.26: Waiting for replica mutex on exit

A very brief state that occurs as the thread is stopping.

• Waiting for Slave Workers to free pending events

From MySQL 8.0.26: Waiting for Replica Workers to free pending events

This waiting action occurs when the total size of events being processed by Workers exceeds the size of the replica_pending_jobs_size_max or slave_pending_jobs_size_max system variable. The Coordinator resumes scheduling when the size drops below this limit. This state occurs only when replica_parallel_workers or slave_parallel_workers is set greater than 0.

• Waiting for the next event in relay log

The initial state before Reading event from the relay log.

• Waiting until MASTER_DELAY seconds after master executed event

From MySQL 8.0.26: Waiting until SOURCE_DELAY seconds after master executed event

The SQL thread has read an event but is waiting for the replica delay to lapse【læps 失效;(逐漸)消失,結束;背棄,放棄(宗教信仰);衰退;期滿終止;衰弱;】. This delay is set with the SOURCE_DELAY | MASTER_DELAY option of the CHANGE REPLICATION SOURCE TO statement (from MySQL 8.0.23) or CHANGE MASTER TO statement (before MySQL 8.0.23).

The Info column for the SQL thread may also show the text of a statement. This indicates that the thread has read an event from the relay log, extracted the statement from it, and may be executing it.

9 Replication Connection Thread States

These thread states occur on a replica server but are associated with connection threads, not with the I/O or SQL threads.

In MySQL 8.0.26, incompatible changes were made to instrumentation names, including the names of thread stages, containing the terms “master”, which is changed to “source”, “slave”, which is changed to “replica”, and “mts” (for “multithreaded slave”), which is changed to “mta” (for “multithreaded applier”). Monitoring tools that work with these instrumentation names might be impacted. If the incompatible changes have an impact for you, set the terminology_use_previous system variable to BEFORE_8_0_26 to make MySQL Server use the old versions of the names for the objects specified in the previous list. This enables monitoring tools that rely on the old names to continue working until they can be updated to use the new names.

Set the terminology_use_previous system variable with session scope to support individual functions, or global scope to be a default for all new sessions. When global scope is used, the slow query log contains the old versions of the names.

• Changing master

From MySQL 8.0.26: Changing replication source

The thread is processing a CHANGE REPLICATION SOURCE TO statement (from MySQL 8.0.23) or CHANGE MASTER TO statement (before MySQL 8.0.23).

• Killing slave

The thread is processing a STOP REPLICA statement.

• Opening master dump table

This state occurs after Creating table from master dump.

• Reading master dump table data

This state occurs after Opening master dump table.

• Rebuilding the index on master dump table

This state occurs after Reading master dump table data.

 


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 目錄題目解析代碼結果展示 題目 解析 ​ 該題主要依靠條件量和互斥鎖來實現線程之間的同步與互斥,分析主線程、線程A和線程B的任務如下: 主線程: 打開LCD屏和觸摸屏的硬體文件,並分別存儲兩個文件的文件描述符,方便後面進行條件判斷。 開啟線程A和線程B。 定義並初始化條件量和互斥量,方便後續線程內進 ...
  • 任務的掛起與恢復的API函數介紹 API函數 描述 vTaskSuspend() 掛起任務 vTaskResume() 恢復被掛起的任務 xTaskResumeFromISR() 在中斷中恢復被掛起的任務 1、掛起任務類似暫停,可恢復; 刪除任務,無法恢復 2、恢復是恢復被掛起任務 3、帶FromI ...
  • VXLAN在雲網路中應用十分廣泛。本文介紹一種方法在兩台Linux主機之間建立簡單的VXLAN隧道,以供學習、研究之用。 ...
  • 很多APP都需要主動向用戶推送消息,這就需要用到長連接的服務,即我們通常提到的websocket,同樣也是使用socket服務,通信協議是基本類似的,在go中用的最多的、也是最簡單的socket服務就是gorilla/websocket,它有21.1K的star,足以說明它的受歡迎程度, 它的git ...
  • 本文測試環境為SQLserver2019 背景 某業務流水錶,會基於固定範圍內的業務編號做寫入以及查詢操作,熱數據的量級在億級別,一個典型的查詢是基於業務編碼查詢最新(時間戳)某種狀態的前N條數據 簡化後的表結構如下 create table TestTable01 ( id bigint iden ...
  • 資料庫引入LLVM之後,可以為具體的查詢生成定製化的機器碼,並儘可能地將數據存儲在CPU的寄存器中進一步加快計算的速度。 ...
  • Redis事務與MySQL事務 不一樣。 原子性:MySQL有Undo Log機制,支持強原子性,和回滾。Redis只能保證事務內指令可以不被干擾的在同一批次執行,且沒有機制保證全部成功則提交,部分失敗則回滾。 隔離性:MySQL的隔離性指多個事務可以併發執行,MySQL有MVCC機制。而Redis ...
  • MySQL死鎖接觸少,但面試又經常被問到怎麼辦? 最近有小伙伴在面試的時候,被問了MySQL死鎖,如何解決? 雖然也回答出來了,但是不夠全面體系化, 所以,小北給大家做一下系統化、體系化的梳理,幫助大家在面試過程中能夠脫穎而出,拿到自己心儀的Offer 插播一條:如果你近期準備面試跳槽,建議在htt ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...