2014-12-01 7 views
0

컬렉션 데이터가 64K를 초과하는 경우 대체 데이터가 있습니까? 귀하의 경우에는 cassandra doc카산드라 : 컬렉션에있는 항목의 최대 크기는 64K입니다.

Observe the following limitations of collections: 

The maximum size of an item in a collection is 64K. 
Keep collections small to prevent delays during querying because Cassandra reads a collection in its entirety. The collection is not paged internally. 

As discussed earlier, collections are designed to store only a small amount of data. 
Never insert more than 64K items in a collection. 

If you insert more than 64K items into a collection, only 64K of them will be queryable, resulting in data loss. 
+0

얼마나 큰 것을 찾고 계십니까? 셀 값을 10MB 미만으로 유지하는 것이 좋습니다. –

답변

0

에 따르면

난 당신이 C의 * 컬렉션을 사용하지 않는 것이 좋습니다 것입니다. 파티션 키클러스터링 열의 조합을 대신 사용하십시오. 따라서 64K 제한이 없습니다.

링크 : http://www.datastax.com/documentation/cql/3.0/cql/ddl/ddl_compound_keys_c.html

+0

사용자가 다른 그룹 인 경우. 예를 들어, user1은 학생, 교사, 친구 등을가집니다. 여기서 user2는 학생, 친구 및 동료가 있습니다. 이 경우 학생과 친구가 우리가 관리하는 것보다 복제됩니다. – rahul

+0

C 컬렉션을 사용해도 같은 문제가 있다고 생각하지만 괜찮습니다. 관계형 DB와 같이 데이터를 비정규 화하려고 시도해서는 안됩니다. – leshkin

+0

알았어. 감사 – rahul