mistyzyq

Results 2 comments of mistyzyq

NSObject+YYModel.m line 1019-1030 if (one) { [one yy_modelSetWithDictionary:value]; } else { Class cls = meta->_cls; if (meta->_hasCustomClassFromDictionary) { cls = [cls modelCustomClassForDictionary:value]; if (!cls) cls = meta->_genericCls; // for xcode...

@YazidLee 感谢回复! 关闭优化确实可以避免问题,也可以通过构建合适的sql使得对应的表不被优化掉。但这都是在确定了问题原因之后的补救措施。 如果能够执行优化,还是不希望每次都手动关闭,如果能有全局关闭的方式或许更能让人接受一些,否则就只能等出了问题再反查原因。 如果是返回了错误的结果而不是执行报错,发现和排查问题就更费劲了。