본문 바로가기

반응형

전체 글

(72)
muliple insert query standard : INSERT INTO tbl_name () VALUES(); multiple insertion : INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);
개요 분산 캐시의 필요성 : 대규모 서비스를 지향 -> 핵심 기능을 사용자에게 전달(서비스) 대규모 트래픽 처리의 성능 이슈 : 대형 서비스는 대부분 데이터를 저장, 읽는 동작을 제공한다. 이때 병목현상이 발생하는 곳이 대부분 데이터 스토어(RDBMS, NoSQL) *NoSQL?Not Only SQL. 대개, DBMS로 처리하기에 비용적, 효율성을 해결할 목적으로 개발 1. Key-Value Srore -> Memecached, redis2. Oriented Store ; 컬럼별 정보를 모아서 저장 -> HBase, Cassandra 3. Document Oriented ; JSON 형태로 저장 -> MongoDB Short URL 서비스.실제 인터넷에서 사용하는 URL을 Short URL로 바꿔주는 서비스...
20151203 정리 1. EPEL(Extra Packages for Enterprise Linux) EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux. 2. webtaticThe Webtatic Yum repository is a CentOS/RHEL reposi..
Centos 6.7 LEMP 환경 CentOS 6.7 / nginx / php5.4 #!/bin/bash cd /usr/local/src yum install -y wget telnet gcc-c++ vsftpd vim subversion subversion-devel # epel reporpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # webtatic reporpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm yum install -y zlib-devel nginx php54w php54w-cli php54w-common php54w-devel php54w-fpm php54w-gd php5..
A* 알고리즘 코드(에러있음) 일정 거리 이상이면 에러 발생하는 버전. #include #include #include #include "Puzzle_Structure.c" #define null '\0'#define CAPACITY 100000#define row 4#define col 4#define true 1#define false 0 int TRY = 0;int Element_Count = 0;//int Closeded_Count = 0;int save = 0;int mn = 0;state* root;Tr* TrRoot; void Push_OPEN(state* OPen[], state*);state* Pop_OPEN(state* Open[]);int Compute_Hh(state*);//골state* Best_First_In..
그래프 BFS, DFS #include #include #define MAX 8 // 정점의 개수입니다. // BOOL을 나타내기 위한 정의입니다.#define TRUE 1#define FALSE 0 typedef struct Node *pointernode; // 노드포인터타입입니다.typedef struct Node{int vertax; // 정점을 나타냅니다.pointernode link; // 노드를 연결하는 링크입니다.}Node; pointernode graph[MAX]; // 인접리스트 구성 초기 포인터배열입니다.int visit[MAX]; // 방문 기록을 알 수 있습니다.int Que[MAX]; // bfs 노드탐색방식에 사용될 배열입니다.(큐방식) int matrix[MAX][MAX]={ // 인접행렬입니다. ..
잠깐 참고용 디비 인덱스 키 테이블을 생성할 때 제목에 언급한 4가지 설정이 헷갈리게 되는 경우가많다. Key 와 Index로 나누어 생각하면 된다. index는 물리적인 관점의 데이터 저장에 대한 설정이고 key 는 논리적인 관점의 데이터 저장에 대한 설정이다. (foreign key도 마찬가지) 데이터가 입력될 때 생성되는 index를 위주로 data를 정렬할 것인가 아니면 그냥 data정렬은 하지 않고 index만 추가할 것인가가 바로 Clustered Index와 NonClustered Index의 차이이다. Primary Key는 논리적으로 데이터를 고유하게 식별할 수 있도록 제약조건을 걸어두는 것이다. Primary Key의 제약조건은 다음과 같다. Not Null중복된 값은 허용하지 않음하나의 table에는 한개의 Pr..
파일 입출력 함수들 함수명 Parameters return value 비고 FILE *fopen const char *filename const char *mode NULL if failed in accessing ptr to file if successful Mode: - file position is set to beginning if "r" or "w" and but set to the end if "a" - if "a" or "w" and the file does not exist, it's created. - "+" is added to indicate the update node (both reading and writing). - "b" is added to open a binary file - (ex: "rb..

반응형