Slow performance on file operations on a mapped network drive to SharePoint

%3CLINGO-SUB%20id%3D%22lingo-sub-2321892%22%20slang%3D%22en-US%22%3ESlow%20performance%20on%20file%20operations%20on%20a%20mapped%20network%20drive%20to%20SharePoint%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321892%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20mapped%20one%20of%20our%20SharePoint%20locations%20to%20a%20network%20drive%2C%20for%20example%2C%20Z%3A%5C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEverything%20is%20fine%20when%20I%20use%20File%20Explorer%2C%20I%20can%20navigate%20the%20folders%2C%20open%20files%2C%20that%20seems%20working%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20when%20I%20programmatically%20open%20files%20using%20the%20.NET%20call%2C%20such%20as%20%3A%3C%2FP%3E%3CP%3EFileInfo%20f%20%3D%20new%20FileInfo(%20filePath%20)%3B%26nbsp%3B%20%26nbsp%3B%2F%2FfilePath%20is%20like%20Z%3A%5Cabc%3C%2FP%3E%3CP%3Eor%3C%2FP%3E%3CP%3Eusing%20(FileStream%20zipToOpen%20%3D%20new%20FileStream(%20filePath%2C%20FileMode.Open%2C%20FileAccess.Read%20))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20extremely%20slow.%26nbsp%3B%20It%20takes%203%20mins%20while%20it%20only%20takes%203%20secs%20for%20handling%20the%20same%20number%20of%20files%20on%20another%20mapped%20drive%20to%20a%20regular%20shared%20folder(%20not%20SharePoint%20).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20like%20the%20SharePoint%20causes%20the%20slowdown%20somehow.%20My%20coworkers%20see%20the%20same%20issue%2C%20as%20long%20as%20we%20use%20SharePoint%20mapped%20drive%2C%20it%20is%20magnitude%20slower%20than%20the%20regular%20mapped%20drive.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20can%20help%20me%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2321892%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi, I mapped one of our SharePoint locations to a network drive, for example, Z:\

 

Everything is fine when I use File Explorer, I can navigate the folders, open files, that seems working well.

 

But when I programmatically open files using the .NET call, such as :

FileInfo f = new FileInfo( filePath );   //filePath is like Z:\abc

or

using (FileStream zipToOpen = new FileStream( filePath, FileMode.Open, FileAccess.Read ))

 

It is extremely slow.  It takes 3 mins while it only takes 3 secs for handling the same number of files on another mapped drive to a regular shared folder( not SharePoint ).

 

It seems like the SharePoint causes the slowdown somehow. My coworkers see the same issue, as long as we use SharePoint mapped drive, it is magnitude slower than the regular mapped drive.

 

Anyone can help me?

 

Thanks a lot!

 

0 Replies