Skip to content

๐Ÿ”’ Experimenting MySQL locks for concurrent Swoole processes.

License

Notifications You must be signed in to change notification settings

leocavalcante/swoole-mysql-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Swoole MySQL Lock

๐Ÿ”’ Experimenting MySQL locks for concurrent Swoole processes.

CREATE TABLE IF NOT EXISTS foo (
    id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    bar VARCHAR(255) NOT NULL,
    baz INT NOT NULL DEFAULT 0,
    ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

INSERT INTO foo (bar) VALUES ('alice'), ('bob'), ('clair'), ('dean'), ('eva'), ('felip'), ('gaby');
Starting worker 0
Starting worker 1
Worker #0 => alice, bob
Worker #1 => clair, dean
Worker #0 => eva, felip
Worker #1 => gaby

About

๐Ÿ”’ Experimenting MySQL locks for concurrent Swoole processes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages