由买买提看人间百态

topics

全部话题 - 话题: bson
(共0页)
a***n
发帖数: 538
1
来自主题: Programming版 - MongoDB力压Cassandra
size()定义在这。
https://github.com/mongodb/mongo/blob/
c8c1dfc29da5f2232f17865fb4cb0d94ed1da2da/src/mongo/bson/bson-inl.h#L522
只有完全一样长的时候才能inplace吧。
e*******o
发帖数: 4654
2
来自主题: Programming版 - 我的团队需要一个做Web前端的
https://www.youtube.com/watch?v=BfWnSxNQpYs
no.
it does scan in bson and can do inplace update in bson,too.
l*r
发帖数: 79569
3
来自主题: LeisureTime版 - 早上下雪啦
哈哈,佟大为是师奶杀手么,侬这是bson年轻?
f*******l
发帖数: 8811
4
Gibson met Robyn Denise Moore in the late 1970s soon after filming Mad
Max when they were both tenants at a house in Adelaide. At the time,
Robyn was a dental nurse and Mel was an unknown actor working for the
South Australian Theatre Company.[82] On June 7, 1980, they were marri
ed in a Catholic church in Forestville, New South Wales and she became
known as Robyn Gibson.[83] The couple have one daughter, six sons, an
d two grandchildren.[84]
After 26 years of marriage, the couple separated in A... 阅读全帖
r*****s
发帖数: 985
5
来自主题: Java版 - 哪里用NoSQL比较合适?
所以在DAO后面的?
比如MongoDB那简直就是为JSON设计的,
再把JSON转成Java Entity再转成JSON/BSON
mapping也很花时间啊,
难道实际project是这么做的?
d***q
发帖数: 1119
6

BSON as well...but less declarative.
c****e
发帖数: 1453
7
来自主题: Programming版 - json是一种革命性的创造
革什么命,default schema是dictionary而已。效率和xml也是50步笑一百步。前端web
service用的多,后台还是用类似google protocol buffer,效率高多了。不过人都是
追星,BSON热起来也完全可能。
w**z
发帖数: 8232
8
Mongo stores Bson , requires whole dataset in memory in order to perform.
建议你看看nosql in general. two good paper to read, Amazon dynamo and
Google big table.
w**z
发帖数: 8232
9
if it has concurrent writes with high volume, Cassandra is better, the write
is sequential disk write, extremely fast (<1ms). For Mongo, need to read
before write since it's a Bson on disk.
You can use Hadoop integration with Cassandra to read data out. But don't
expect much for relational flavor of sql from Cassandra. Think of it as a
big Hashtable, no join, very poor index support. It's good at HA and large
volume writes.
a***n
发帖数: 538
10
来自主题: Programming版 - MongoDB力压Cassandra
http://docs.mongodb.org/manual/core/write-operations/
The db.collection.update() method either updates specific fields in the
existing document or replaces the document. See db.collection.update() for
details.
When performing update operations that increase the document size beyond the
allocated space for that document, the update operation relocates the
document on disk and may reorder the document fields depending on the type
of update.
The db.collection.save() method replaces a document and c... 阅读全帖
a***n
发帖数: 538
11
来自主题: Programming版 - MongoDB力压Cassandra

bson的serialize就慢的要死了。
a***n
发帖数: 538
12
来自主题: Programming版 - MongoDB力压Cassandra
是不是inPlace挺复杂的,看line 1999。新的field大小一样的时候是inplace的。
https://github.com/mongodb/mongo/blob/
67253d75220d44a967a7ccdcead25bc37319136a/src/mongo/bson/mutable/document.cpp
v***e
发帖数: 2108
13
来自主题: Programming版 - Graph database 业界用的多吗? (转载)
那是,document-oriented db with support of JSON/BSON
是市场最大的, 竞争也是最激烈的。
E******g
发帖数: 170
14
来自主题: Programming版 - 移动数据传输格式选择问题
移动时代的数据传输格式选择难题?xml,json比较浪费流量;二进制json方案众多(bson,
bjson,ubjson,smile);二进制xml(WBXML,BiM, EBML)方案也众多;Protobuf,Thrift无法
表示通用的数据格式,扩展性较差;MessagePack 相对比较通用,但发现多平台数据互通
的时候转换有一些问题.各位是否有好的建议?
……………
帮朋友问的
……………
g*****g
发帖数: 34805
15
来自主题: Programming版 - 移动数据传输格式选择问题
文件大的话,gzip json, 文件小的话,raw json就可以了。对于终端用户而言,绝大
部分流量是在视频上耗掉了。
json不算什么。

bson,
B********e
发帖数: 1062
16
option 1
use boost Any type with std::map
option 2
define the structure in json format. and use json object to replace c++
structure.
if you want to use it with mongo, use bson object.
B********e
发帖数: 1062
17
hdf5 作计算的很多都用这种格式
bson比较简单,转化容易
w**z
发帖数: 8232
18
来自主题: Programming版 - 我的团队需要一个做Web前端的
MongoDB 存bson, 是不是改record 之前一定要读出来?
N********n
发帖数: 8363
19
来自主题: Programming版 - 选择 WCF 还是 ASP.NET WebApi

1. There's BSON support for binary data tho IDK how efficient it is.
2. "Reliable message" sounds like a TCP thing or at least some
"WS-Reliable" SOAP-based protocols. You may have to go w/ WCF here.
3. Message security is usually done w/ HTTPS & SSL available for
both WCF and Web API.
4. It's like supporting the plain old WebService. You could put it
all in one module or split them based on different functionality.
I guess you might have a mixture of WebAPI and WCF code. WebAPI for
simplicity ... 阅读全帖
c*****t
发帖数: 1879
20
来自主题: Programming版 - print double auto precision?
I have a BSON file, when using bsondump, it is
{ "double" : "1234567890.12345", "array" : [ "123.45", "67890.1234" ] }
But when I tried to print the same double values using Java, they
were:
{
"double" : 1234567890.1234500408172607421875,
"array" : [
123.4500000000000028421709430404007434844970703125,
67890.123399999996763654053211212158203125
]
}
I knew these double values could be exactly represented, but I was
wondering if there are equi... 阅读全帖
(共0页)