-
Notifications
You must be signed in to change notification settings - Fork 8
/
MONGO
executable file
·130 lines (104 loc) · 9.85 KB
/
MONGO
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
db.dates.ensureIndex({date: 1, unique: true, dropDups: true})
db.sids.ensureIndex({sid: 1, unique: true, dropDups: true})
db.misc.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.misc.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.calendar.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.calendar.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.universe.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.universe.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.shares.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.shares.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.industry.ensureIndex({standard: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.industry.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.industry_info.ensureIndex({standard: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.industry_info.ensureIndex({standard: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.index_components.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.index_components.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.quote.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.quote.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.eod_value.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.eod_value.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.moneyflow.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.moneyflow.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.l2indicator.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.l2indicator.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.margin.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.margin.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.index_quote.ensureIndex({index: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.index_quote.ensureIndex({date: 1, index: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_quote.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_quote.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.ts_1min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.ts_1min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.ts_1min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_1min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_1min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_1min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.ts_5min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.ts_5min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.ts_5min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_5min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_5min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_5min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.ts_30min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.ts_30min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.ts_30min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_30min.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_30min.ensureIndex({dname: 1, time: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_30min.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.ts_ret.ensureIndex({dname: 1, date: 1, time: 1}, {unique: true, dropDups: true, background: true})
db.ts_ret.ensureIndex({date: 1, time: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_ret.ensureIndex({index: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.tsindex_ret.ensureIndex({index: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.interval_derivative.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.interval_derivative.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.auction.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.auction.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.barra_idmaps.ensureIndex({date: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_exposure.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_exposure.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_returns.ensureIndex({factor: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_covariance.ensureIndex({date: 1, factor: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_precovariance.ensureIndex({date: 1, factor: 1}, {unique: true, dropDups: true, background: true})
db.barra_S_specifics.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.zyconsensus.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.zyconsensus.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.zyscore_adjust.ensureIndex({date: 1, org_id: 1}, {background: true})
db.zyscore_adjust.ensureIndex({date: 1, report_type: 1}, {background: true})
db.zyscore_adjust.ensureIndex({report_date: 1, org_id: 1}, {background: true})
db.zyscore_adjust.ensureIndex({report_date: 1, report_type: 1}, {background: true})
db.zyreport_adjust.ensureIndex({date: 1, org_id: 1}, {background: true})
db.zyreport_adjust.ensureIndex({date: 1, report_type: 1}, {background: true})
db.zyreport_adjust.ensureIndex({report_date: 1, org_id: 1}, {background: true})
db.zyreport_adjust.ensureIndex({report_date: 1, report_type: 1}, {background: true})
db.IF.ensureIndex({sid: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.IF.ensureIndex({sid: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.IF_1min.ensureIndex({sid: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.IF_1min.ensureIndex({sid: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.IF_1min.ensureIndex({dname: 1}, {background: true})
db.IF_5min.ensureIndex({sid: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.IF_5min.ensureIndex({sid: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.IF_5min.ensureIndex({dname: 1}, {background: true})
db.lof.ensureIndex({sid: 1, dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.lof.ensureIndex({sid: 1, date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.alpha.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.alpha.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.performance.ensureIndex({alpha: 1, mode: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.performance.ensureIndex({mode: 1, alpha: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.analyst_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.barra_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.cax_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.fund_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.interval_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.market_indicator.ensureIndex({market: 1, indicator: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.analyst_indicator.ensureIndex({indicator: 1}, {background: true})
db.barra_indicator.ensureIndex({indicator: 1}, {background: true})
db.cax_indicator.ensureIndex({indicator: 1}, {background: true})
db.fund_indicator.ensureIndex({indicator: 1}, {background: true})
db.interval_indicator.ensureIndex({indicator: 1}, {background: true})
db.market_indicator.ensureIndex({indicator: 1}, {background: true})
db.sywgindex_indicator.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_indicator.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_alpha.ensureIndex({dname: 1, date: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_alpha.ensureIndex({date: 1, dname: 1}, {unique: true, dropDups: true, background: true})
db.sywgindex_performance.ensureIndex({alpha: 1, date: 1}, {unique: true, dropDups: true, background: true})