Home  >  Article  >  Backend Development  >  mongodb PHP客户端怎么获取单个document的大小?

mongodb PHP客户端怎么获取单个document的大小?

WBOY
WBOYOriginal
2016-06-06 20:49:221010browse

单个document有大小限制,我要储存的数据有点大,数据结构想尽可能不分割开。所以心里没底,想先检查一下。

刚查了一下PHP的文档,没找到获取单个document的方法。求教。

回复内容:

单个document有大小限制,我要储存的数据有点大,数据结构想尽可能不分割开。所以心里没底,想先检查一下。

刚查了一下PHP的文档,没找到获取单个document的方法。求教。

在stackoverflow上找到了这个。 http://stackoverflow.com/questions/10769845/to-insert-into-mongodb-does-the-size-of-document-converted-to-bson-change

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn