[ https://issues.apache.org/jira/browse/KYLIN-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15382006#comment-15382006 ]
Shaofeng SHI edited comment on KYLIN-1860 at 7/18/16 9:49 AM: -------------------------------------------------------------- in MetadataManager.getModels() method, there is such a code snippet; it was for the metadata compitability when upgrading from 0.6 I remember (may have cube but no model); Now it is time to remove this redundant code {code} //TODO, list model from realization,compatible with old meta data,will remove RealizationRegistry registry = RealizationRegistry.getInstance(config); for (RealizationEntry realization : projectInstance.getRealizationEntries()) { IRealization rel = registry.getRealization(realization.getType(), realization.getRealization()); if (rel != null) { DataModelDesc modelDesc = rel.getDataModelDesc(); if (modelDesc != null && !ret.contains(modelDesc)) { ProjectManager.getInstance(config).updateModelToProject(modelDesc.getName(), projectName); ret.add(modelDesc); } } else { logger.warn("Realization '" + realization + "' defined under project '" + projectInstance + "' is not found"); } } {code} was (Author: shaofengshi): in MetadataManager.getModels() method, there is such a code snippet: {code} //TODO, list model from realization,compatible with old meta data,will remove RealizationRegistry registry = RealizationRegistry.getInstance(config); for (RealizationEntry realization : projectInstance.getRealizationEntries()) { IRealization rel = registry.getRealization(realization.getType(), realization.getRealization()); if (rel != null) { DataModelDesc modelDesc = rel.getDataModelDesc(); if (modelDesc != null && !ret.contains(modelDesc)) { ProjectManager.getInstance(config).updateModelToProject(modelDesc.getName(), projectName); ret.add(modelDesc); } } else { logger.warn("Realization '" + realization + "' defined under project '" + projectInstance + "' is not found"); } } {code} > "Models" is slow to show up > --------------------------- > > Key: KYLIN-1860 > URL: https://issues.apache.org/jira/browse/KYLIN-1860 > Project: Kylin > Issue Type: Bug > Components: Web > Affects Versions: v1.5.2, v1.5.3 > Reporter: Shaofeng SHI > Assignee: Shaofeng SHI > Fix For: v1.5.3 > > Attachments: Screen Shot 2016-07-08 at 5.10.41 PM.png > > > There is an "loading" icon, after about 1 minute it shows up, this is too > slow; there must be something wrong. Pls see the screenshot -- This message was sent by Atlassian JIRA (v6.3.4#6332)