Find Jobs
Hire Freelancers

Fine tune/Speed up my SQL stored procedure with currently take ~15-20mins

$10-30 AUD

완료함
게시됨 약 5년 전

$10-30 AUD

제출할때 지불됩니다
I need an expert to fine tune my stored procedure which I don't think is too complex. It tries to insert/update transactions/records in a master table only if it passes some rules. If it fails it insert/updates the transactions/records in another table. The procedure for 45,000 line takes around 15 mins. It works perfectly as is, but it takes so long and I know my tables in a couple of months will be +1million records so i'm nervous how long it will take then. -------------------------------------------------------------------- SQL SHELL EXAMPLE - Working one can be provided with test data -------------------------------------------------------------------- USE [CHAMP_DW] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[ETL_stage_evestment_performance_to_champ] @BatchImportID UNIQUEIDENTIFIER OUTPUT AS BEGIN SET NOCOUNT ON; /*Variable Declaration*/ /*Assign static value for whole one time process*/ /*Create staging table so we can re-run procedure instead of having to rerun complete task again and again*/ -- POPULATE TEMP TABLE /*While loop started to get process record one by one*/ WHILE EXISTS(SELECT 1 FROM #stagingPerformance AS FHD WITH (NOLOCK)) BEGIN BEGIN TRY BEGIN TRANSACTION /*assign 1 record values to respective variables*/ /*Record wise validation start*/ SELECT @ErrorCode = NULLIF(STUFF(@ErrorCode,1,1,''),''), @ErrorMessage = NULLIF(STUFF(@ErrorMessage,1,1,''),'') IF @ErrorMessage IS NOT NULL BEGIN ;THROW 50552,'VALIDATION RAISE ERROR.',1 END /*Record wise validation end*/ -- INSERT/UPDATE FACT TABLE --COMMIT TRANSACTION END TRY BEGIN CATCH -- ROLL BACK -- INSERT/UPDATE LOG TABLE --COMMIT TRANSACTION END CATCH -- CLEAR VARIABLES END DROP TABLE #stagingPerformance END
프로젝트 ID: 18793966

프로젝트 정보

13 제안서
원격근무 프로젝트
활동 중 5년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
I have written ETL type scripts previously and have extensive experience in SQL Server I would have to understand the exact process and data what you are doing as it needs to be written simpler and rather with a bulk update instead of a while loop. If you can explain on the error condition should the whole process fail or only the invalid records fail Eliminating of the temp table is also probably smart as it is dependent on your temp database setup
$25 AUD 1일에
5.0 (1 건의 리뷰)
0.6
0.6
13 이 프로젝트에 프리랜서들의 평균 입찰은 $41 AUD입니다.
사용자 아바타
hi, i can fine tune and optimize your queries or store procedures and bring it down in second. i am an experienced db administrator. thanks
$15 AUD 1일에
4.9 (6 건의 리뷰)
4.9
4.9
사용자 아바타
Hi Sir, I can improve you sql stored procedure. I can give you till monday. If you are interested let me know. Thanks, Alex
$30 AUD 1일에
5.0 (5 건의 리뷰)
3.3
3.3
사용자 아바타
hi i read all requirement please share more detail i did similar 5 task i will provide 5 star rating work thanks less
$50 AUD 1일에
4.9 (6 건의 리뷰)
3.2
3.2
사용자 아바타
Hi, By seeing procedure i can straightway say that there is use of temporary table in procedure. 1. Make sure that temporary tablespace enough database space available. ( Increase tempdb space). 2. If at all if you can avoid from temporary table to permanant table then it will improve performance. If it solves please accept the bid. Regards
$30 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hi, I have 10 years extensive experience of working with Microsoft SQL Server & writing simple to very complex, high performance tsql scripts. Thanks
$25 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hi, I have been working with SQL for the last 15 years. I have good knowledge on optimization including reading execution plans and using the Query Analyzer. Thanks
$25 AUD 3일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I have done several fine tuning of Stores Procedures and this should be an easy one. Consider this done.
$28 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Having 7 plus Years of SQL DBA experience would make this stored procdure tuning would more effective and ease.
$25 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Dear Sir , I have 20 years of experience in BI Analytics and Data Integration . Expert level work experience in SQL and PL/SQL in various database like Oracle , SQL Server , MY SQL , Teradata etc . Good exposure in Database tuning and application tuning . If you think I can help you then kindly let me know . Regards , Goutam Sahoo
$25 AUD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (AUSTRALIA)
GLEN IRIS, Australia
5.0
3
결제 수단 확인
1월 19, 2019부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.