Posts

Showing posts with the label azure

Azure SQL DB causing connection time out for stored procedures

Azure SQL DB causing connection time out for stored procedures We have hosted our database in Azure and are running stored procedures on this DB. The stored procedures had been running fine till last week but suddenly started giving error connection timeout. Our database size is 14 GB and the stored procedures in general return 2k to 20k records and we are using the S3 pricing tier (50 DTU) of Azure DB. What I found interesting was the first time the stored procedure is executed, it takes a lot of time 2 - 3 mins and this is causing the timeout. The later executions are fast (maybe it caches the execution plan). Also when I run on the same DB with the same number of records on a machine with the config of 8gb ram, Win10 it runs in 15 seconds . This is my stored procedure: CREATE PROCEDURE [dbo].[PRSP] @CompanyID INT, @fromDate DATETIME, @toDate DATETIME, @ListMailboxId as MailboxIds Readonly, @ListConversationType as ConversationTypes Readonly AS BEGIN ...

Windows Azure: How to create sub directory in a blob container

Image
Windows Azure: How to create sub directory in a blob container How to create a sub directory in a blob container for example, in my blob container http://veda.blob.core.windows.net/document/ If I store some files it will be http://veda.blob.core.windows.net/document/1.txt http://veda.blob.core.windows.net/document/2.txt Now, how to create a sub directory http://veda.blob.core.windows.net/document/folder/ So that I can store files http://veda.blob.core.windows.net/document/folder/1.txt 8 Answers 8 To add on to what Egon said, simply create your blob called "folder/1.txt", and it will work. No need to create a directory. how you filter or get all these files from "folder" ? – afr0 Oct 16 '15 at 0:09 read...

TableStorage queryEntities sometimes returning 0 entries but no error

TableStorage queryEntities sometimes returning 0 entries but no error TableStorage & Nodejs Using the function "queryEntities" sometimes result.entries.length is 0, even when I am pretty sure there are a lot of entries in the database. The "where" parameters are ok, but sometimes (maybe one every 100) it returns 0 entries. Not error returned. Just 0 entries. And in my function that's causing troubles. My theory is that the database sometimes is saturated because this function executes every 10 seconds and maybe sometimes before one finish another one starts and both operate over the same table, and instead of error it returns a length 0 , what is something awful. There is any way to resolve this? Shouldn't it return error? You could measure if your network has any package lost when doing the queries against the storage – Marcus Höglund Jun 30 at 10:41 ...