Revision 57521
Added by Antonis Lempesis over 4 years ago
StatsDAO.java | ||
---|---|---|
130 | 130 |
log.info("Schema renamed"); |
131 | 131 |
} |
132 | 132 |
|
133 |
public void fix_integer_ids() throws Exception { |
|
134 |
log.info("fixing integer ids..."); |
|
135 |
Connection con = statsDatasource.getConnection(); |
|
136 |
|
|
137 |
startTime = System.currentTimeMillis(); |
|
138 |
String q = "{call shadow.fix_result_ids()}"; |
|
139 |
|
|
140 |
CallableStatement st = con.prepareCall(q); |
|
141 |
st.execute(); |
|
142 |
|
|
143 |
st.close(); |
|
144 |
con.close(); |
|
145 |
|
|
146 |
endtime = System.currentTimeMillis(); |
|
147 |
log.info("Time to fix integer ids: " + ((endtime - startTime) / 60000) + " minutes "); |
|
148 |
} |
|
149 |
|
|
133 | 150 |
public void addArrayColumns() throws Exception { |
134 | 151 |
log.info("Adding new columns ..."); |
135 | 152 |
Connection con = statsDatasource.getConnection(); |
Also available in: Unified diff
using int ids in results