Commit Graph

689 Commits

Author SHA1 Message Date
Chad
7c8432c679 Merge branch 'v8/feature/nucache-perf' into v8/feature/nucache-perf-sql-fixes 2021-02-12 18:08:53 +13:00
nzdev
fb93e15c10 fix key 2021-02-12 14:50:21 +13:00
Shannon
55a39613c1 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-02-11 12:38:06 +11:00
Shannon
91830e5553 Adds error checking 2021-01-28 14:42:02 +11:00
Shannon
5a80b30289 Fixes SQL (oops), wasn't appending the joins 2021-01-28 14:28:09 +11:00
Shannon
32f88dba95 removes CompressedStorageAttribute, makes IPropertyCacheCompressionOptions which can be defined in DI to configure what properties can be compressed in memory and new IReadOnlyContentBase to provide some context to the IPropertyCacheCompressionOptions 2021-01-28 13:50:18 +11:00
Shannon
4bfba2eeba adds some notes 2021-01-27 15:31:40 +11:00
Shannon
57708960f0 reverts change for IsDecompressed 2021-01-27 15:16:22 +11:00
Shannon
0b057d0b3f Merge branch 'v8/feature/more-serialization' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/more-serialization
# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/LazyCompressedString.cs
2021-01-27 15:13:36 +11:00
Shannon
9200c46cd0 Ensure LazyCompressedString doesn't decompress when debugging 2021-01-27 15:11:16 +11:00
Shannon
0cb4952338 Don't keep re-creating serializer settings on deserialize 2021-01-25 15:56:01 +11:00
Shannon
808e58b60f fixes up inconsistencies 2021-01-22 16:14:25 +11:00
Chad
0bd4dced0b Improve performance and reduce memory use and reduce array allocations by reusing char[] (#9166)
* Reduce array allocations by reusing char[]

* don't hide .Equals()

* Reduce memory use by reducing array allocations

* Revert "Reduce memory use by reducing array allocations"

This reverts commit faf6b60234167f5443435243eb52187ab07d514c.

* reuse char[] for string.split() to avoid params [] allocation
2021-01-22 12:02:25 +10:00
Shannon
c5bd53770a fixes sql template 2021-01-22 01:13:03 +11:00
Shannon
eec81a3890 updates sql usage in DatabaseDataSource 2021-01-22 00:15:07 +11:00
Shannon Deminick
382197c0a7 Merge pull request #9268 from nzdev/v8/feature/nucache-perf-count-query-optimization
Optimize content and media count queries when paging
2021-01-21 23:01:29 +11:00
Shannon
025bcf2f4c notes 2020-12-16 17:50:34 +11:00
nzdev
697206188f use property 2020-12-16 19:23:14 +13:00
nzdev
f8bb53ac03 changed isdecompressed to a property. Changed serializerbase to internal 2020-12-16 19:20:24 +13:00
Shannon
c3656d3e58 Adds notes fixes tests 2020-12-16 16:52:43 +11:00
Shannon
78b563c79b Adds notes 2020-12-16 16:12:02 +11:00
Shannon
28b9b62781 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-12-16 15:26:57 +11:00
nzdev
f09fcfbdd4 Fix serialization of decompressed lazy strings 2020-11-27 14:45:44 +13:00
nzdev
e8195bfff0 fix deserialization order 2020-11-24 10:10:38 +13:00
nzdev
95fe8bea23 Serialize more primitives 2020-11-24 10:09:27 +13:00
nzdev
32788a0a42 reduce array allocations 2020-11-23 10:36:46 +01:00
Sebastiaan Janssen
b5546d074a Merge branch 'v8/contrib' into v8/dev 2020-11-23 10:19:14 +01:00
nzdev
da3d509333 bug fix. 2020-11-18 14:41:03 +13:00
Shannon
c2d9f5aa4e Ensure that TaskScheduler.Default is used anywhere that ContinueWith is used, adds more debug logging to MainDom operations 2020-11-18 12:33:13 +11:00
nzdev
e3fd9b72c5 Optimize content and media count queries when paging 2020-10-24 17:06:28 +13:00
Ronald Barendse
2bfef74191 Fix casing of 'URL' (#9080) 2020-10-05 20:48:38 +02:00
Shannon
67a9b5bb97 Refactors the serialization of the content data that is stored in the nucache table. This had to change because we need to resolve content type data in order to check if the property should be compressed and we cannot do that data lookup while the data is being processed since we get an open data reader exception. This is fixed now by using a serializer factory instead so the Create method can do any initialization needed prior to running any serialization operation. Renames a few things so we dont have ContentNested (whatever that meant ) 2020-09-25 00:32:11 +10:00
Shannon
6bd6d97bda WIP (fixes migrations) 2020-09-24 18:37:24 +10:00
Shannon
9a06b6291a Simplifies compression implementation, adds compression options to target all complex editors, ensures the options are per document type/property type 2020-08-26 15:57:13 +10:00
Shannon
ba8da3850e This gets things working with all compression levels - going to cleanup/simplify 2020-08-26 11:43:43 +10:00
Shannon
a078a30990 Re-adds the indexes removed 2020-08-25 14:19:44 +10:00
Shannon
d84d305ae9 Changes our Expression visitor to not output NOT for boolean values 2020-08-25 10:38:49 +10:00
Shannon
6f2dccc2e2 Uses a more optimized COUNT query when rebuilding the in memory cache 2020-08-25 10:14:36 +10:00
Shannon
666d67e562 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2020-08-14 00:49:03 +10:00
Shannon
c619e5a96a Fixes the property map, adds notes, updates tests data to include larger paragraphs 2020-08-14 00:45:58 +10:00
Shannon
7d689a6e11 adds notes, ensures that we optimize property data when using msgpack binary serialization too! 2020-08-13 23:32:05 +10:00
Shannon
9ac2c27110 Revert "removes the SQLDatabase enum value" and renames some stuff 2020-08-13 23:09:40 +10:00
Shannon
044585a4f3 removes the SQLDatabase enum value 2020-08-13 22:22:06 +10:00
Shannon
07de0876e7 Cleans up some code, adds code comments 2020-08-13 22:15:09 +10:00
Shannon
0d159751b9 Cleans up code - removes tuples everywhere 2020-08-13 19:15:13 +10:00
nzdev
451eacf7cb Fix NuCache spelling 2020-08-04 18:03:08 +12:00
nzdev
d4276dff58 Fix composition. Store compression options in map 2020-08-04 18:01:06 +12:00
nzdev
d1449a0f5c Fix key mapping 2020-07-09 11:50:15 +12:00
nzdev
c1c189d47f Wip support for compressing/decompressing nucache documents on a per property basis. Option for compressing the properties in sql/nucache.db. Option for immediate/lazy decompression of properties. Mapping support for shorter property alias.
TODO: config file for property map
TODO:  HasValue and IsValue on propertyvalueconverterbase
2020-07-09 00:17:31 +12:00
Shannon
c4e7929e68 Converts umbProperty to a component, gets nested valPropertyMsg validators clearing (as a prototype), need to check TODOs, test inline editing, etc... 2020-07-07 12:50:15 +10:00