preloader
軟體工程 Tricky number operation between SQLite and MySQL

Important: The result of 10/110 in SQLite is 0 and different with 0.09090909 when manipulating in MySQL. When testing Laravel Eloquent ORM both at local machine with SQLite and at remote machine with MySQL, you will find some execution results don’t same as expected at local machine. That’s is because SQLite won’t transform integer to real number automatically. Workaround: Add multiply 1.0 to ORM SQL statement and it becomes portable

read more
軟體工程 PHP 在 MySQL 的悲觀鎖寫法

例如我們要更新某一筆資料,使用悲觀鎖寫法 不囉唆,開始提供 PHP 範例寫法: // 查出單筆的資料 $sqlA = "SELECT * FROM your_table_name1 WHERE u_id = " . $obj->id . " FOR UPDATE "; // $obj->id 是我自定義的變數 //

read more
軟體工程 MySQL最佳化指南

網路上看到這個技術分享文章覺得不錯 [MySQL 優化大全:設定 my.cnf 優化指南] http://www.dk101.com/Discuz/viewthread.php?tid=115738#.VTOVThfs4e5 ,有參考用的參數值,以及文章最底下還有最佳化的建議方向,我看完之後,認為以前

read more

About

Howard Lee, Frontend-engineer with Angular 7+, Typescript, ReactJS, VueJS. Flutter, Dart, PHP, Ruby, JavaScript, HTML, SASS, CSS, Postgres, MySQL, Web Developer. Have a certificate of AWS Solution Architect Associate with verify number: 8FYNL55LCEEQ10W5. You can verify at AWS Certificate site or Credly site Tech lead role Lead 4 colleagues to build products and infrastructure Coordinate schedule of delivering products Senior web frontend developer role Products Form-filling, form-sharing, file-management, repair-managemnt and project-management for construction industry at Suiqui IoT management and EC platform for Liquid Petroleum Gas(LPG) at Wave-In Comm.

Know More

Tag

Social