Tuesday, August 26, 2014

DBA - choose right database for your project


NoSQL Database
  • RethinkDB (http://www.rethinkdb.com/)
  • MongoDB
  • RavenDB


When is NoSql database not a good choice?

  • If you need full ACID support or strong schema enforcement — in this case you are better off using a relational database such as MySQL or PostgreSQL.
  • If you are doing deep, computationally-intensive analytics you are better off using a system like Hadoop or a column-oriented store like Vertica.
  • If you absolutely need high write availability and do not mind dealing with conflicts, you may be better off with a Dynamo-style system like Riak.

Node-JS


WHY
http://www.toptal.com/nodejs/why-the-hell-would-i-use-node-js#.

Projects

https://stormpath.com/blog/build-app-nodejs-express-passport-stormpath/

WINDOWS
https://github.com/coreybutler/node-windows

Monday, August 18, 2014

Greate Sites Collection


API Documentation

Online Store
  • http://www.stuckonyou.com.au/
Tech Sites

Design

国内优秀网站
  • TMALL

Thursday, August 7, 2014

MySQL Things

MySQL Doc 

MySQL Tools

Common Commands

Show Databases;
show processlist;
show events;
Show Tables;
Describe TABLE_NAME; 


NO LOCK
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED ;
SELECT * FROM TABLE_NAME ;
COMMIT ;
 
SQL (Agent) JOB 
SET GLOBAL event_scheduler = ON;
http://www.sitepoint.com/how-to-create-mysql-events/

TEMP TABLE

CREATE TEMPORARY TABLE IF NOT EXISTS tmp_C AS (SELECT * FROM `Carrier`);

select * from tmp_C;
VARIABLE


select @CarrierId :=  Id from TableName where `Name` = 'T';