Big cleanup
This commit is contained in:
parent
d3080a08bb
commit
8b671090a0
55 changed files with 214 additions and 3967 deletions
|
|
@ -113,23 +113,6 @@ int ExplainTreeModelItem::childCount() const
|
|||
return static_cast<int>(m_childItems.size());
|
||||
}
|
||||
|
||||
//int ExplainTreeModelItem::columnCount() const
|
||||
//{
|
||||
// return 6;
|
||||
//}
|
||||
|
||||
//QVariant ExplainTreeModelItem::data(int column) const
|
||||
//{
|
||||
// QVariant r;
|
||||
// if (column == 0) {
|
||||
// r = nodeType;
|
||||
// }
|
||||
// else if (column == 1) {
|
||||
|
||||
// }
|
||||
// return r;
|
||||
//}
|
||||
|
||||
int ExplainTreeModelItem::row() const
|
||||
{
|
||||
int idx = 0;
|
||||
|
|
@ -151,166 +134,6 @@ ExplainTreeModelItemPtr ExplainTreeModelItem::parent()
|
|||
return p;
|
||||
}
|
||||
|
||||
//void ExplainTreeModelItem::setNodeType(QString nt)
|
||||
//{
|
||||
// m_nodeType = std::move(nt);
|
||||
//}
|
||||
|
||||
//const QString& ExplainTreeModelItem::nodeType() const
|
||||
//{
|
||||
// return m_nodeType;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setParallelAware(bool aware)
|
||||
//{
|
||||
// m_parallelAware = aware;
|
||||
//}
|
||||
|
||||
//bool ExplainTreeModelItem::getParallelAware() const
|
||||
//{
|
||||
// return m_parallelAware;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setStrategy(QString strat)
|
||||
//{
|
||||
// m_strategy = std::move(strat);
|
||||
//}
|
||||
|
||||
//const QString& ExplainTreeModelItem::strategy() const
|
||||
//{
|
||||
// return m_strategy;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setJoinType(QString jointype)
|
||||
//{
|
||||
// m_joinType = jointype;
|
||||
//}
|
||||
|
||||
//QString ExplainTreeModelItem::joinType() const
|
||||
//{
|
||||
// return m_joinType;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setStartupCost(float cost)
|
||||
//{
|
||||
// m_startupCost = cost;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setTotalCost(float cost)
|
||||
//{
|
||||
// m_totalCost = cost;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setEstimatedRows(long long estimated)
|
||||
//{
|
||||
// m_estimatedRows = estimated;
|
||||
//}
|
||||
|
||||
//long long ExplainTreeModelItem::estimatedRows() const
|
||||
//{
|
||||
// return m_estimatedRows;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setPlanWidth(int width)
|
||||
//{
|
||||
// m_planWidth = width;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setActualStartupTime(float timems)
|
||||
//{
|
||||
// m_actualStartupTime = timems;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setActualTotalTime(float timems)
|
||||
//{
|
||||
// m_actualTotalTime = timems;
|
||||
//}
|
||||
|
||||
//float ExplainTreeModelItem::actualTotalTime() const
|
||||
//{
|
||||
// return m_actualTotalTime;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setActualRows(long long rowcount)
|
||||
//{
|
||||
// m_actualRows = rowcount;
|
||||
//}
|
||||
|
||||
//long long ExplainTreeModelItem::actualRows() const
|
||||
//{
|
||||
// return m_actualRows;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setActualLoops(int loopcount)
|
||||
//{
|
||||
// m_actualLoops = loopcount;
|
||||
//}
|
||||
|
||||
//int ExplainTreeModelItem::actualLoops() const
|
||||
//{
|
||||
// return m_actualLoops;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setRelationName(QString n)
|
||||
//{
|
||||
// m_relationName = std::move(n);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setAlias(QString a)
|
||||
//{
|
||||
// m_alias = std::move(a);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setScanDirection(QString dir)
|
||||
//{
|
||||
// m_scanDirection = std::move(dir);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setIndexName(QString idxname)
|
||||
//{
|
||||
// m_indexName = std::move(idxname);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setIndexCondition(QString idxcond)
|
||||
//{
|
||||
// m_indexCondition = std::move(idxcond);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setIndexRecheck(QString idxrecheck)
|
||||
//{
|
||||
// m_indexRecheck = std::move(idxrecheck);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setFilter(QString filter)
|
||||
//{
|
||||
// m_filter = std::move(filter);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setHashCondition(QString condition)
|
||||
//{
|
||||
// m_hashCondition = std::move(condition);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setSortKey(QString key)
|
||||
//{
|
||||
// m_sortKey = std::move(key);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setSortMethod(QString method)
|
||||
//{
|
||||
// m_sortMethod = std::move(method);
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setSortSpaceUsed(int space)
|
||||
//{
|
||||
// m_sortSpaceUsed = space;
|
||||
//}
|
||||
|
||||
//void ExplainTreeModelItem::setSortSpaceType(QString type)
|
||||
//{
|
||||
// m_sortSpaceType = std::move(type);
|
||||
//}
|
||||
|
||||
float ExplainTreeModelItem::exclusiveTime() const
|
||||
{
|
||||
float tt = inclusiveTime();
|
||||
|
|
@ -389,29 +212,3 @@ QString ExplainTreeModelItem::detailString() const
|
|||
|
||||
return s.trimmed();
|
||||
}
|
||||
|
||||
//"Sort Key": ["pg_attribute.attname"],
|
||||
//"Sort Method": "quicksort",
|
||||
//"Sort Space Used": 1426,
|
||||
//"Sort Space Type": "Memory",
|
||||
|
||||
|
||||
//{
|
||||
// "Node Type": "Index Scan",
|
||||
// "Parent Relationship": "Inner",
|
||||
// "Scan Direction": "Forward",
|
||||
// "Index Name": "pg_type_oid_index",
|
||||
// "Relation Name": "pg_type",
|
||||
// "Alias": "pg_type",
|
||||
// "Startup Cost": 0.15,
|
||||
// "Total Cost": 0.18,
|
||||
// "Plan Rows": 1,
|
||||
// "Plan Width": 758,
|
||||
// "Actual Startup Time": 0.003,
|
||||
// "Actual Total Time": 0.004,
|
||||
// "Actual Rows": 1,
|
||||
// "Actual Loops": 100,
|
||||
// "Index Cond": "(oid = pg_attribute.atttypid)",
|
||||
// "Rows Removed by Index Recheck": 0
|
||||
// "Filter": "actief"
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue