1. SQL 基礎介紹 什麼是 SQL? SQL 是 “Structured Query Language” 的縮寫,是一種專門用來與關聯式資料庫互動的語言。它用於查詢、更新、插入、刪除資料,並且能夠管理和操控資料
[Read More]
Design Pattern - UML
Association Relationships Association is a link between classes representing a relationship between two classes. It includes Multiplicity, indicating the relationship between objects of one class to another. Direction specifies if the relationship is unidirectional or bidirectional. Roles define the part each class plays in the relationship. Names give a label to the relationship. Constraints specify conditions within the relationship. Example of Association in Java public class LoginForm { private JButton loginButton; } Mermaid Diagram classDiagram class LoginForm { -JButton loginButton } LoginForm --> JButton : contains Bidirectional Association Objects of two classes have references to each other.
[Read More]
關於 Deadlock
死鎖發生的必要條件 當死鎖發生時,必然會滿足以下四個條件: Mutual Exclusion: 至少存在一個資源是無法共享的。 Hold and Wait: 一個Thread握有資源且等待另一個被其他T
[Read More]
介紹 Process Scheduling
透過 Process Sheduler,將一個或一組Process指派給CPU core,一個CPU core一次運行處理一個Process。在記憶體中的pro
[Read More]
介紹 Thread
Thread 由 thread ID, program counter, register set 以及 stack 組成,是Process管理下,實際的工作角色。 Multithread Programming 當一個 Process 不只有一個Thread時,可以稱其為Multithread。
[Read More]
DBMS Table 的 Normalization
Normalization 是一個最小化 relations 的 redundency 的過程。有分數個 Normal Form 的等級,等級高的包含等級低的要求。 Attribute 類型 key attributes: 可形成 primary key 的 attributes prime attribute: 是 key attribute,其本身可能是 key
[Read More]
介紹 Process
我們常說的程式 (Program) 是一個寫好的可執行檔案,或是編譯好的可執行檔案。當他開始執行,進入到電腦的記憶體時,會稱作Process。Process是工
[Read More]
Relational Database 中 Table 的key
Key 類型 定義 Superkey 一個屬性或組合屬性可以決定唯一Table的列 Candidate key 為最小化的superkey。也就是Cadndidate key中無法從其子屬性或子
[Read More]
SQL 的效能調試
大部分的 relational DBMS 有自動query最佳化的功能,但這不代表使用者可以完全不處理query的最佳化,因為自動最佳化能做到的是一般情況而非特定問題。另
[Read More]
DBMS 的 Indexes Optimization
資料庫中,Indexes可以加速Table的搜尋、排序、group functions 等操作。Index 由 Index key及 Pointers組成,Index key 是 Table 的欄
[Read More]