在下面的代码中,getArchives()是一个远程API。getArchives()返回一个超大的JSON,大于100 MB,将来可能更大。
public void syncArchive() {
// the json is so large, I'm wondering it's appropriate to use java.lang.String to hold it
String data = dataService.getArchives();
// convert data to List<Archive> and the
我尝试过在mysql中通过命令行导入数据库。它是一个大的,有2 2Gb大小。导入在某些地方被停止,错误如下
Error 2006 at line 14425, Mysql has gone away.
我查了一下桌子,总共有450张左右。但只导入了363个表。
无论如何,我将再次尝试增加max_allowed_packet和timeout。
问题是,我是否可以导入前一个数据库,以便它可以在停止的地方继续。或导入到新数据库中..?
我有一个mysql数据库,在其中我保存了物品的信息,也保存了描述。
问题是,description列最多可以容纳150个字符,我认为这很长,我想知道它是否会减慢查询时间。另外,我想知道是否建议缩短int的大小,我的意思是,如果我的价格通常不是那么大,我是否应该将该列限制为小/中int?
这些列如下所示:
id name category publisher mail price description
提前谢谢。