-
Notifications
You must be signed in to change notification settings - Fork 4
/
h_transaction_index.txt
75 lines (70 loc) · 1.29 KB
/
h_transaction_index.txt
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
db.h_transaction.createIndex (
{
txid: -1
},
{
unique: true,
partialFilterExpression:{
$and:[
{
txid:{
$lt: 'd5d27987d2a3dfc724e359870c6644b40e497bdc0589a033220fe15429d88599'
}
},
{
txid:{
$gt: 'd5d27987d2a3dfc724e359870c6644b40e497bdc0589a033220fe15429d88599'
}
},
{
txid:{
$lt: 'e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468'
}
},
{
txid:{
$gt: 'e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468'
}
}
]
}
}
);
db.h_transaction.createIndex (
{
txid: -1,
block_ref: -1
},
{
unique: true,
partialFilterExpression:{
txid:
{
$in:['d5d27987d2a3dfc724e359870c6644b40e497bdc0589a033220fe15429d88599', 'e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468']
}
}
}
);
db.h_transaction.createIndex ({txid: -1, block_ref: -1}, {unique: true});
, options: {unique: true}}
db.hex.find({hash:'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'})
db.address.createIndex (
{
hex_ref: -1
},
{
unique: true,
partialFilterExpression:{
$and:[{
spk_type_ref:{
$lt: ObjectId("5c6239318cb3150f4322d5c2")
}
},
{
spk_type_ref:{
$gt: ObjectId("5c6239318cb3150f4322d5c2")
}
}]
}
}
);