မော်ဂျူး ဆွေးနွေးချက်:Wikidata

အခြားဘာသာစကားများဖြင့် စာမျက်နှာအကြောင်းအရာများကို ပံ့ပိုးမထားပါ။
ဝီကီပီးဒီးယား မှ

Critical performance improvement[ပြင်ဆင်ရန်]

There is the following inefficiency in Wikidata module:

		-- otherwise, iterate over all properties, fetch their labels and compare this to the given property name
		for k, v in pairs(entity.claims) do
			if mw.wikibase.label(k) == property then return v end
		end

This can also be expressed with:

		property = mw.wikibase.resolvePropertyId(property)
		if not property then return end

		return entity.claims[property]

The advantaged of the second version is that it doesn't need to iterate over all Statements (which is badly discouraged), thus the pages in question don't "use" all Statements. See also T178114. Please fix this problem. Thank you! Amir Sarabadani (WMDE) (ဆွေးနွေး) ၂၀:၂၅၊ ၈ မတ် ၂၀၁၈ (UTC)[အကြောင်းပြန်ရန်]

Done. Thank you. NinjaStrikers «» ၀၄:၂၂၊ ၉ မတ် ၂၀၁၈ (UTC)[အကြောင်းပြန်ရန်]