Sebastiaan Jansssen
7cd540c37e
Remove additional premature uses of C#7 features
2018-01-29 14:35:30 +01:00
leekelleher
0780979469
Eagerly populating the Guid lookup
...
as per @Shazwazza's comment: https://github.com/umbraco/Umbraco-CMS/pull/2398#issuecomment-358752346
Tested against 12,000 nodes (in the XML cache), profiling showed it took 55ms.
2018-01-24 11:53:52 +00:00
leekelleher
a42e568fdf
Initialized the ConcurrentDictionary statically
...
as per @JimBobSquarePants's comment: https://github.com/umbraco/Umbraco-CMS/pull/2398#discussion_r162799543
2018-01-24 11:51:53 +00:00
leekelleher
6841b2ac61
Amended the lookup dictionary setter,
...
as per @JimBobSquarePants's comment: https://github.com/umbraco/Umbraco-CMS/pull/2398#discussion_r162522998
2018-01-24 10:29:23 +00:00
leekelleher
f7f4276485
Removed the need for the UseLegacyXmlSchema check
...
The enhancement in PR #2367 removed the `"@isDoc"` check,
which was the main difference between the legacy and current XML schema.
Reducing the XPath to `"//*[@key=$guid]"` will perform the same for both types of schema.
_(and saves on a couple of allocations)_
2018-01-24 10:29:23 +00:00
leekelleher
bb9e23ca3e
Proposed patch for U4-10756 - Guid TypedContent performance
...
This is a proposal for a temporary workaround to issue U4-10756.
It uses a local static ConcurrentDictionary to store a lookup of Guid/int values.
If the Guid isn't in the lookup, then the traditional XPath is used, which would add the resulting node ID (int) to the lookup.
If the lookup contains the Guid, then the returned int value will be used to perform a more efficient retrieval.
<http://issues.umbraco.org/issue/U4-10756 >
2018-01-24 10:29:23 +00:00
Niels Hartvig
6d46c2204d
Doesn't fix the issue but improves performance by ~30%
2018-01-03 12:54:25 +01:00
Sebastiaan Janssen
1f29418ea5
Revert "Adds overloads so you can do paging with the TypedSearch methods."
...
This reverts commit 089f488c15 .
2017-11-08 09:23:58 +01:00
Tim
089f488c15
Adds overloads so you can do paging with the TypedSearch methods.
2017-11-02 13:55:19 +00:00
Stephan
a0caab410e
U4-8720 - add dynamic support, UmbracoHelper methods
2016-07-19 16:13:46 +02:00
Stephan
dc476dcb02
U4-8720 - get typed content by guid
2016-07-19 15:38:42 +02:00
Stephan
a542cf56d4
U4-7063 - Umbraco.TypedContent(ints) should not return nulls
2015-09-04 10:43:42 +02:00
Shannon
c760a7c50d
Merge branch 'dev-v7-7.3.0-UmbHelperInterfaces' of https://github.com/Shazwazza/Umbraco-CMS into Shazwazza-dev-v7-7.3.0-UmbHelperInterfaces
...
Conflicts:
src/Umbraco.Web/Umbraco.Web.csproj
2015-02-18 17:14:55 +01:00
Shannon
52629f829d
Working on: U4-5711 Media cache valueDictionary exception
2014-11-18 12:05:03 +11:00
Per Ploug Krogslund
7440855c72
merge
2013-11-07 17:16:22 +01:00
Shannon
b75a9cc34b
Changed the naming to PublishedContentQuery and TagQuery
2013-11-02 13:22:48 +11:00