-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathmongo-init.js
55 lines (52 loc) · 902 Bytes
/
mongo-init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
conn = new Mongo();
db = conn.getDB("rinha");
db.accounts.drop();
db.accounts.insertMany(
[
{
"_id": 1,
"saldo": {
"total": 0,
"limite": 100000
},
"ultimas_transacoes": [],
"gordurinha": 100000
},
{
"_id": 2,
"saldo": {
"total": 0,
"limite": 80000
},
"ultimas_transacoes": [],
"gordurinha": 80000
},
{
"_id": 3,
"saldo": {
"total": 0,
"limite": 1000000
},
"ultimas_transacoes": [],
"gordurinha": 1000000
},
{
"_id": 4,
"saldo": {
"total": 0,
"limite": 10000000
},
"ultimas_transacoes": [],
"gordurinha": 10000000
},
{
"_id": 5,
"saldo": {
"total": 0,
"limite": 500000
},
"ultimas_transacoes": [],
"gordurinha": 500000
}
]
);