Per Magne Skuseth
Jul 30, 2015
  4397
(6 votes)

Updates to EPiCode.SqlBlobProvider

Version 1.3 of EPiCode.SqlBlobProvider is now available in the EPiServer NuGet feed.

In addition to some minor performance improvements, there are a couple of new features:

Cache blobs on disk
If you have a slow database connection or a vast amount of blobs, it would probably be faster to serve the blobs from disk rather than directly from the database. By setting loadFromDisk=”true”, you can do exactly this. This works by automatically caching files on disk when a blob has been requested for the first time. Performance wise, it should be equal to the standard FileBlobProvider. The simplicity and distributional benefits of the provider are still the same.

Files are by default stored in [appDataPath]\\sqlProviderBlobs, but can be configured:

<blob defaultProvider="sqlBlobProvider">
  <providers>
    <add loadFromDisk="true" path="c:\my_custom_location" name="sqlBlobProvider" type="EPiCode.SqlBlobProvider.SqlBlobProvider, EPiCode.SqlBlobProvider" />
  </providers>
</blob>

 

Export SQL blobs
A scheduled job for exporting all existing SQL blobs has been added. The files will be exported to the default (or configured) path.

Jul 30, 2015

Comments

Henrik Fransas
Henrik Fransas Jul 30, 2015 02:16 PM

Great news!

thanks!

Per Magne Skuseth
Per Magne Skuseth Jul 30, 2015 02:29 PM

Kudos to Lee Crowe who came up with the whole caching idea :-)

K Khan
K Khan Jul 30, 2015 03:46 PM

Will this improve bandwidth usage also?

/K

Jul 30, 2015 03:49 PM

Thanks for the Kudos Per ;).  It's good to see that this request has finally made it into the provider.

Per Magne Skuseth
Per Magne Skuseth Jul 30, 2015 04:01 PM

Yeah, sorry it took so long. I've been busy - pushing a stroller instead of pushing code.

Per Magne Skuseth
Per Magne Skuseth Jul 30, 2015 04:06 PM

It should improve bandwidth as well, since it is using a FileStream and not a MemoryStream

Justin Le
Justin Le Jul 31, 2015 04:59 AM

Oh well, fantastic news! Many thanks for the Kudos Per :)

Vincent
Vincent Aug 3, 2015 07:41 AM

Is there any facility that we can use to flush out the cache file?

Per Magne Skuseth
Per Magne Skuseth Aug 3, 2015 11:59 AM

Files wil be deleted when content is deleted, but other than that there is no built flush functionallity. You could delete the main folder on disk though. 
I might add a scheduled job that can do this.

Johan Book
Johan Book Aug 13, 2015 11:50 AM

When I upgraded to latest version, the blob declaration in Episerverframework.config was removed. Is this a known issue?

Per Magne Skuseth
Per Magne Skuseth Aug 20, 2015 11:41 AM

Johan, this is because the episerver.framework files has been moved into a section in web.config.

Per Magne Skuseth
Per Magne Skuseth Aug 24, 2015 10:33 AM

File, not files.

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024