[{"data":1,"prerenderedAt":2597},["ShallowReactive",2],{"blog-mssql-postgresql-yavash-sorgu-tespit-cozum":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"readMin":11,"tags":12,"slug":17,"body":18,"_type":2591,"_id":2592,"_source":2593,"_file":2594,"_stem":2595,"_extension":2596},"\u002Fblog\u002Fmssql-postgresql-yavash-sorgu-tespit-cozum","blog",false,"","SQL Sorgularınız Neden Yavaş? MSSQL ve PostgreSQL'de Performans Teşhisi","MSSQL ve PostgreSQL'de yavaş sorguları tespit etmenin adım adım yöntemi. Execution plan okuma, missing index bulma, query store kullanımı — gerçek örneklerle.","2026-06-16",10,[13,14,15,16],"Veritabanı","MSSQL","PostgreSQL","Performans","mssql-postgresql-yavash-sorgu-tespit-cozum",{"type":19,"children":20,"toc":2573},"root",[21,29,34,41,46,57,62,137,141,147,154,166,662,667,1029,1035,1047,1055,1166,1172,1177,1542,1556,1559,1565,1570,1581,1629,1825,1831,1993,2001,2009,2035,2055,2061,2066,2260,2279,2282,2288,2294,2374,2445,2451,2456,2464,2467,2473,2478,2545,2548,2553,2567],{"type":22,"tag":23,"props":24,"children":25},"element","p",{},[26],{"type":27,"value":28},"text","\"Uygulama yavaşladı\" şikayetleriyle gelen çağrıların büyük çoğunluğunun arkasında bir veritabanı sorunu yatar. Sunucu kaldırılmış, uygulama optimize edilmiş ama problem yerinde duruyor — çünkü asıl darboğaz, kimsenin bakmadığı SQL sorgularındadır.",{"type":22,"tag":23,"props":30,"children":31},{},[32],{"type":27,"value":33},"Bu yazıda MSSQL (SQL Server) ve PostgreSQL'de yavaş sorguları nasıl tespit ettiğinizi ve ilk müdahaleyi nasıl yapacağınızı adım adım göstereceğiz.",{"type":22,"tag":35,"props":36,"children":38},"h2",{"id":37},"neden-yavaş-önce-teşhis-sonra-tedavi",[39],{"type":27,"value":40},"Neden Yavaş? Önce Teşhis, Sonra Tedavi",{"type":22,"tag":23,"props":42,"children":43},{},[44],{"type":27,"value":45},"En yaygın hata: sorunu tahmin etmek. \"Index ekleyeyim düzelir\" veya \"sunucuyu güçlendirelim\" kararları, gerçek problemi görmeden verilir ve çoğu zaman boşa gider.",{"type":22,"tag":23,"props":47,"children":48},{},[49,51],{"type":27,"value":50},"Teşhis şu soruyu yanıtlamalıdır: ",{"type":22,"tag":52,"props":53,"children":54},"strong",{},[55],{"type":27,"value":56},"Bu sorgu neden bu kadar kaynak harcıyor?",{"type":22,"tag":23,"props":58,"children":59},{},[60],{"type":27,"value":61},"Olası sebepler:",{"type":22,"tag":63,"props":64,"children":65},"ul",{},[66,77,87,97,107,117,127],{"type":22,"tag":67,"props":68,"children":69},"li",{},[70,75],{"type":22,"tag":52,"props":71,"children":72},{},[73],{"type":27,"value":74},"Table scan:",{"type":27,"value":76}," Index yokken tüm tablo okunuyor",{"type":22,"tag":67,"props":78,"children":79},{},[80,85],{"type":22,"tag":52,"props":81,"children":82},{},[83],{"type":27,"value":84},"Index var ama kullanılmıyor:",{"type":27,"value":86}," Yanlış sütun sırası, fonksiyon içinde kullanım, tip uyumsuzluğu",{"type":22,"tag":67,"props":88,"children":89},{},[90,95],{"type":22,"tag":52,"props":91,"children":92},{},[93],{"type":27,"value":94},"Aşırı row döndürme:",{"type":27,"value":96}," Gereksiz veri, eksik filtreleme",{"type":22,"tag":67,"props":98,"children":99},{},[100,105],{"type":22,"tag":52,"props":101,"children":102},{},[103],{"type":27,"value":104},"Join sırası:",{"type":27,"value":106}," Küçük tablo büyüğe göre join edilmeli",{"type":22,"tag":67,"props":108,"children":109},{},[110,115],{"type":22,"tag":52,"props":111,"children":112},{},[113],{"type":27,"value":114},"Stale statistics:",{"type":27,"value":116}," Sorgu planlayıcı eski istatistiklerle kötü karar alıyor",{"type":22,"tag":67,"props":118,"children":119},{},[120,125],{"type":22,"tag":52,"props":121,"children":122},{},[123],{"type":27,"value":124},"Lock\u002Fblocking:",{"type":27,"value":126}," Başka bir işlem kaynağı tutuyor",{"type":22,"tag":67,"props":128,"children":129},{},[130,135],{"type":22,"tag":52,"props":131,"children":132},{},[133],{"type":27,"value":134},"N+1 sorunu:",{"type":27,"value":136}," ORM her satır için ayrı sorgu atıyor",{"type":22,"tag":138,"props":139,"children":140},"hr",{},[],{"type":22,"tag":35,"props":142,"children":144},{"id":143},"mssql-sql-server-adım-adım-teşhis",[145],{"type":27,"value":146},"MSSQL (SQL Server) — Adım Adım Teşhis",{"type":22,"tag":148,"props":149,"children":151},"h3",{"id":150},"_1-en-yavaş-sorguları-bul",[152],{"type":27,"value":153},"1. En Yavaş Sorguları Bul",{"type":22,"tag":23,"props":155,"children":156},{},[157,159,164],{"type":27,"value":158},"SQL Server 2016 ve sonrası için ",{"type":22,"tag":52,"props":160,"children":161},{},[162],{"type":27,"value":163},"Query Store",{"type":27,"value":165}," en iyi başlangıç noktasıdır. GUI yerine SQL ile doğrudan sorgulayalım:",{"type":22,"tag":167,"props":168,"children":172},"pre",{"code":169,"language":170,"meta":7,"className":171,"style":7},"-- Son 24 saatte en fazla CPU harcayan 10 sorgu\nSELECT TOP 10\n    qs.total_worker_time \u002F qs.execution_count   AS avg_cpu_ms,\n    qs.total_elapsed_time \u002F qs.execution_count  AS avg_duration_ms,\n    qs.execution_count,\n    SUBSTRING(qt.text, (qs.statement_start_offset \u002F 2) + 1,\n        ((CASE qs.statement_end_offset\n            WHEN -1 THEN DATALENGTH(qt.text)\n            ELSE qs.statement_end_offset END\n        - qs.statement_start_offset) \u002F 2) + 1)  AS query_text\nFROM sys.dm_exec_query_stats qs\nCROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt\nORDER BY avg_cpu_ms DESC;\n","sql","language-sql shiki shiki-themes github-dark",[173],{"type":22,"tag":174,"props":175,"children":176},"code",{"__ignoreMap":7},[177,189,210,259,302,323,397,424,474,501,561,589,638],{"type":22,"tag":178,"props":179,"children":182},"span",{"class":180,"line":181},"line",1,[183],{"type":22,"tag":178,"props":184,"children":186},{"style":185},"--shiki-default:#6A737D",[187],{"type":27,"value":188},"-- Son 24 saatte en fazla CPU harcayan 10 sorgu\n",{"type":22,"tag":178,"props":190,"children":192},{"class":180,"line":191},2,[193,199,204],{"type":22,"tag":178,"props":194,"children":196},{"style":195},"--shiki-default:#F97583",[197],{"type":27,"value":198},"SELECT",{"type":22,"tag":178,"props":200,"children":201},{"style":195},[202],{"type":27,"value":203}," TOP",{"type":22,"tag":178,"props":205,"children":207},{"style":206},"--shiki-default:#79B8FF",[208],{"type":27,"value":209}," 10\n",{"type":22,"tag":178,"props":211,"children":213},{"class":180,"line":212},3,[214,219,225,230,235,240,244,249,254],{"type":22,"tag":178,"props":215,"children":216},{"style":206},[217],{"type":27,"value":218},"    qs",{"type":22,"tag":178,"props":220,"children":222},{"style":221},"--shiki-default:#E1E4E8",[223],{"type":27,"value":224},".",{"type":22,"tag":178,"props":226,"children":227},{"style":206},[228],{"type":27,"value":229},"total_worker_time",{"type":22,"tag":178,"props":231,"children":232},{"style":195},[233],{"type":27,"value":234}," \u002F",{"type":22,"tag":178,"props":236,"children":237},{"style":206},[238],{"type":27,"value":239}," qs",{"type":22,"tag":178,"props":241,"children":242},{"style":221},[243],{"type":27,"value":224},{"type":22,"tag":178,"props":245,"children":246},{"style":206},[247],{"type":27,"value":248},"execution_count",{"type":22,"tag":178,"props":250,"children":251},{"style":195},[252],{"type":27,"value":253},"   AS",{"type":22,"tag":178,"props":255,"children":256},{"style":221},[257],{"type":27,"value":258}," avg_cpu_ms,\n",{"type":22,"tag":178,"props":260,"children":262},{"class":180,"line":261},4,[263,267,271,276,280,284,288,292,297],{"type":22,"tag":178,"props":264,"children":265},{"style":206},[266],{"type":27,"value":218},{"type":22,"tag":178,"props":268,"children":269},{"style":221},[270],{"type":27,"value":224},{"type":22,"tag":178,"props":272,"children":273},{"style":206},[274],{"type":27,"value":275},"total_elapsed_time",{"type":22,"tag":178,"props":277,"children":278},{"style":195},[279],{"type":27,"value":234},{"type":22,"tag":178,"props":281,"children":282},{"style":206},[283],{"type":27,"value":239},{"type":22,"tag":178,"props":285,"children":286},{"style":221},[287],{"type":27,"value":224},{"type":22,"tag":178,"props":289,"children":290},{"style":206},[291],{"type":27,"value":248},{"type":22,"tag":178,"props":293,"children":294},{"style":195},[295],{"type":27,"value":296},"  AS",{"type":22,"tag":178,"props":298,"children":299},{"style":221},[300],{"type":27,"value":301}," avg_duration_ms,\n",{"type":22,"tag":178,"props":303,"children":305},{"class":180,"line":304},5,[306,310,314,318],{"type":22,"tag":178,"props":307,"children":308},{"style":206},[309],{"type":27,"value":218},{"type":22,"tag":178,"props":311,"children":312},{"style":221},[313],{"type":27,"value":224},{"type":22,"tag":178,"props":315,"children":316},{"style":206},[317],{"type":27,"value":248},{"type":22,"tag":178,"props":319,"children":320},{"style":221},[321],{"type":27,"value":322},",\n",{"type":22,"tag":178,"props":324,"children":326},{"class":180,"line":325},6,[327,332,337,342,346,350,355,360,364,369,373,378,383,388,393],{"type":22,"tag":178,"props":328,"children":329},{"style":206},[330],{"type":27,"value":331},"    SUBSTRING",{"type":22,"tag":178,"props":333,"children":334},{"style":221},[335],{"type":27,"value":336},"(",{"type":22,"tag":178,"props":338,"children":339},{"style":206},[340],{"type":27,"value":341},"qt",{"type":22,"tag":178,"props":343,"children":344},{"style":221},[345],{"type":27,"value":224},{"type":22,"tag":178,"props":347,"children":348},{"style":206},[349],{"type":27,"value":27},{"type":22,"tag":178,"props":351,"children":352},{"style":221},[353],{"type":27,"value":354},", (",{"type":22,"tag":178,"props":356,"children":357},{"style":206},[358],{"type":27,"value":359},"qs",{"type":22,"tag":178,"props":361,"children":362},{"style":221},[363],{"type":27,"value":224},{"type":22,"tag":178,"props":365,"children":366},{"style":206},[367],{"type":27,"value":368},"statement_start_offset",{"type":22,"tag":178,"props":370,"children":371},{"style":195},[372],{"type":27,"value":234},{"type":22,"tag":178,"props":374,"children":375},{"style":206},[376],{"type":27,"value":377}," 2",{"type":22,"tag":178,"props":379,"children":380},{"style":221},[381],{"type":27,"value":382},") ",{"type":22,"tag":178,"props":384,"children":385},{"style":195},[386],{"type":27,"value":387},"+",{"type":22,"tag":178,"props":389,"children":390},{"style":206},[391],{"type":27,"value":392}," 1",{"type":22,"tag":178,"props":394,"children":395},{"style":221},[396],{"type":27,"value":322},{"type":22,"tag":178,"props":398,"children":400},{"class":180,"line":399},7,[401,406,411,415,419],{"type":22,"tag":178,"props":402,"children":403},{"style":221},[404],{"type":27,"value":405},"        ((",{"type":22,"tag":178,"props":407,"children":408},{"style":195},[409],{"type":27,"value":410},"CASE",{"type":22,"tag":178,"props":412,"children":413},{"style":206},[414],{"type":27,"value":239},{"type":22,"tag":178,"props":416,"children":417},{"style":221},[418],{"type":27,"value":224},{"type":22,"tag":178,"props":420,"children":421},{"style":206},[422],{"type":27,"value":423},"statement_end_offset\n",{"type":22,"tag":178,"props":425,"children":427},{"class":180,"line":426},8,[428,433,438,443,448,453,457,461,465,469],{"type":22,"tag":178,"props":429,"children":430},{"style":195},[431],{"type":27,"value":432},"            WHEN",{"type":22,"tag":178,"props":434,"children":435},{"style":195},[436],{"type":27,"value":437}," -",{"type":22,"tag":178,"props":439,"children":440},{"style":206},[441],{"type":27,"value":442},"1",{"type":22,"tag":178,"props":444,"children":445},{"style":195},[446],{"type":27,"value":447}," THEN",{"type":22,"tag":178,"props":449,"children":450},{"style":206},[451],{"type":27,"value":452}," DATALENGTH",{"type":22,"tag":178,"props":454,"children":455},{"style":221},[456],{"type":27,"value":336},{"type":22,"tag":178,"props":458,"children":459},{"style":206},[460],{"type":27,"value":341},{"type":22,"tag":178,"props":462,"children":463},{"style":221},[464],{"type":27,"value":224},{"type":22,"tag":178,"props":466,"children":467},{"style":206},[468],{"type":27,"value":27},{"type":22,"tag":178,"props":470,"children":471},{"style":221},[472],{"type":27,"value":473},")\n",{"type":22,"tag":178,"props":475,"children":477},{"class":180,"line":476},9,[478,483,487,491,496],{"type":22,"tag":178,"props":479,"children":480},{"style":195},[481],{"type":27,"value":482},"            ELSE",{"type":22,"tag":178,"props":484,"children":485},{"style":206},[486],{"type":27,"value":239},{"type":22,"tag":178,"props":488,"children":489},{"style":221},[490],{"type":27,"value":224},{"type":22,"tag":178,"props":492,"children":493},{"style":206},[494],{"type":27,"value":495},"statement_end_offset",{"type":22,"tag":178,"props":497,"children":498},{"style":195},[499],{"type":27,"value":500}," END\n",{"type":22,"tag":178,"props":502,"children":503},{"class":180,"line":11},[504,509,513,517,521,525,530,534,538,542,546,551,556],{"type":22,"tag":178,"props":505,"children":506},{"style":195},[507],{"type":27,"value":508},"        -",{"type":22,"tag":178,"props":510,"children":511},{"style":206},[512],{"type":27,"value":239},{"type":22,"tag":178,"props":514,"children":515},{"style":221},[516],{"type":27,"value":224},{"type":22,"tag":178,"props":518,"children":519},{"style":206},[520],{"type":27,"value":368},{"type":22,"tag":178,"props":522,"children":523},{"style":221},[524],{"type":27,"value":382},{"type":22,"tag":178,"props":526,"children":527},{"style":195},[528],{"type":27,"value":529},"\u002F",{"type":22,"tag":178,"props":531,"children":532},{"style":206},[533],{"type":27,"value":377},{"type":22,"tag":178,"props":535,"children":536},{"style":221},[537],{"type":27,"value":382},{"type":22,"tag":178,"props":539,"children":540},{"style":195},[541],{"type":27,"value":387},{"type":22,"tag":178,"props":543,"children":544},{"style":206},[545],{"type":27,"value":392},{"type":22,"tag":178,"props":547,"children":548},{"style":221},[549],{"type":27,"value":550},")  ",{"type":22,"tag":178,"props":552,"children":553},{"style":195},[554],{"type":27,"value":555},"AS",{"type":22,"tag":178,"props":557,"children":558},{"style":221},[559],{"type":27,"value":560}," query_text\n",{"type":22,"tag":178,"props":562,"children":564},{"class":180,"line":563},11,[565,570,575,579,584],{"type":22,"tag":178,"props":566,"children":567},{"style":195},[568],{"type":27,"value":569},"FROM",{"type":22,"tag":178,"props":571,"children":572},{"style":206},[573],{"type":27,"value":574}," sys",{"type":22,"tag":178,"props":576,"children":577},{"style":221},[578],{"type":27,"value":224},{"type":22,"tag":178,"props":580,"children":581},{"style":206},[582],{"type":27,"value":583},"dm_exec_query_stats",{"type":22,"tag":178,"props":585,"children":586},{"style":221},[587],{"type":27,"value":588}," qs\n",{"type":22,"tag":178,"props":590,"children":592},{"class":180,"line":591},12,[593,598,603,607,611,616,620,624,628,633],{"type":22,"tag":178,"props":594,"children":595},{"style":195},[596],{"type":27,"value":597},"CROSS",{"type":22,"tag":178,"props":599,"children":600},{"style":195},[601],{"type":27,"value":602}," APPLY",{"type":22,"tag":178,"props":604,"children":605},{"style":206},[606],{"type":27,"value":574},{"type":22,"tag":178,"props":608,"children":609},{"style":221},[610],{"type":27,"value":224},{"type":22,"tag":178,"props":612,"children":613},{"style":206},[614],{"type":27,"value":615},"dm_exec_sql_text",{"type":22,"tag":178,"props":617,"children":618},{"style":221},[619],{"type":27,"value":336},{"type":22,"tag":178,"props":621,"children":622},{"style":206},[623],{"type":27,"value":359},{"type":22,"tag":178,"props":625,"children":626},{"style":221},[627],{"type":27,"value":224},{"type":22,"tag":178,"props":629,"children":630},{"style":206},[631],{"type":27,"value":632},"sql_handle",{"type":22,"tag":178,"props":634,"children":635},{"style":221},[636],{"type":27,"value":637},") qt\n",{"type":22,"tag":178,"props":639,"children":641},{"class":180,"line":640},13,[642,647,652,657],{"type":22,"tag":178,"props":643,"children":644},{"style":195},[645],{"type":27,"value":646},"ORDER BY",{"type":22,"tag":178,"props":648,"children":649},{"style":221},[650],{"type":27,"value":651}," avg_cpu_ms ",{"type":22,"tag":178,"props":653,"children":654},{"style":195},[655],{"type":27,"value":656},"DESC",{"type":22,"tag":178,"props":658,"children":659},{"style":221},[660],{"type":27,"value":661},";\n",{"type":22,"tag":23,"props":663,"children":664},{},[665],{"type":27,"value":666},"Query Store etkinse daha temiz:",{"type":22,"tag":167,"props":668,"children":670},{"code":669,"language":170,"meta":7,"className":171,"style":7},"SELECT TOP 10\n    qsq.query_id,\n    qsrs.avg_duration \u002F 1000.0          AS avg_ms,\n    qsrs.count_executions,\n    qsqt.query_sql_text\nFROM sys.query_store_query_text qsqt\nJOIN sys.query_store_query      qsq  ON qsqt.query_text_id = qsq.query_text_id\nJOIN sys.query_store_plan       qsp  ON qsq.query_id       = qsp.query_id\nJOIN sys.query_store_runtime_stats qsrs ON qsp.plan_id = qsrs.plan_id\nORDER BY qsrs.avg_duration DESC;\n",[671],{"type":22,"tag":174,"props":672,"children":673},{"__ignoreMap":7},[674,689,710,755,775,792,817,881,941,1001],{"type":22,"tag":178,"props":675,"children":676},{"class":180,"line":181},[677,681,685],{"type":22,"tag":178,"props":678,"children":679},{"style":195},[680],{"type":27,"value":198},{"type":22,"tag":178,"props":682,"children":683},{"style":195},[684],{"type":27,"value":203},{"type":22,"tag":178,"props":686,"children":687},{"style":206},[688],{"type":27,"value":209},{"type":22,"tag":178,"props":690,"children":691},{"class":180,"line":191},[692,697,701,706],{"type":22,"tag":178,"props":693,"children":694},{"style":206},[695],{"type":27,"value":696},"    qsq",{"type":22,"tag":178,"props":698,"children":699},{"style":221},[700],{"type":27,"value":224},{"type":22,"tag":178,"props":702,"children":703},{"style":206},[704],{"type":27,"value":705},"query_id",{"type":22,"tag":178,"props":707,"children":708},{"style":221},[709],{"type":27,"value":322},{"type":22,"tag":178,"props":711,"children":712},{"class":180,"line":212},[713,718,722,727,731,736,740,745,750],{"type":22,"tag":178,"props":714,"children":715},{"style":206},[716],{"type":27,"value":717},"    qsrs",{"type":22,"tag":178,"props":719,"children":720},{"style":221},[721],{"type":27,"value":224},{"type":22,"tag":178,"props":723,"children":724},{"style":206},[725],{"type":27,"value":726},"avg_duration",{"type":22,"tag":178,"props":728,"children":729},{"style":195},[730],{"type":27,"value":234},{"type":22,"tag":178,"props":732,"children":733},{"style":206},[734],{"type":27,"value":735}," 1000",{"type":22,"tag":178,"props":737,"children":738},{"style":221},[739],{"type":27,"value":224},{"type":22,"tag":178,"props":741,"children":742},{"style":206},[743],{"type":27,"value":744},"0",{"type":22,"tag":178,"props":746,"children":747},{"style":195},[748],{"type":27,"value":749},"          AS",{"type":22,"tag":178,"props":751,"children":752},{"style":221},[753],{"type":27,"value":754}," avg_ms,\n",{"type":22,"tag":178,"props":756,"children":757},{"class":180,"line":261},[758,762,766,771],{"type":22,"tag":178,"props":759,"children":760},{"style":206},[761],{"type":27,"value":717},{"type":22,"tag":178,"props":763,"children":764},{"style":221},[765],{"type":27,"value":224},{"type":22,"tag":178,"props":767,"children":768},{"style":206},[769],{"type":27,"value":770},"count_executions",{"type":22,"tag":178,"props":772,"children":773},{"style":221},[774],{"type":27,"value":322},{"type":22,"tag":178,"props":776,"children":777},{"class":180,"line":304},[778,783,787],{"type":22,"tag":178,"props":779,"children":780},{"style":206},[781],{"type":27,"value":782},"    qsqt",{"type":22,"tag":178,"props":784,"children":785},{"style":221},[786],{"type":27,"value":224},{"type":22,"tag":178,"props":788,"children":789},{"style":206},[790],{"type":27,"value":791},"query_sql_text\n",{"type":22,"tag":178,"props":793,"children":794},{"class":180,"line":325},[795,799,803,807,812],{"type":22,"tag":178,"props":796,"children":797},{"style":195},[798],{"type":27,"value":569},{"type":22,"tag":178,"props":800,"children":801},{"style":206},[802],{"type":27,"value":574},{"type":22,"tag":178,"props":804,"children":805},{"style":221},[806],{"type":27,"value":224},{"type":22,"tag":178,"props":808,"children":809},{"style":206},[810],{"type":27,"value":811},"query_store_query_text",{"type":22,"tag":178,"props":813,"children":814},{"style":221},[815],{"type":27,"value":816}," qsqt\n",{"type":22,"tag":178,"props":818,"children":819},{"class":180,"line":399},[820,825,829,833,838,843,848,853,857,862,867,872,876],{"type":22,"tag":178,"props":821,"children":822},{"style":195},[823],{"type":27,"value":824},"JOIN",{"type":22,"tag":178,"props":826,"children":827},{"style":206},[828],{"type":27,"value":574},{"type":22,"tag":178,"props":830,"children":831},{"style":221},[832],{"type":27,"value":224},{"type":22,"tag":178,"props":834,"children":835},{"style":206},[836],{"type":27,"value":837},"query_store_query",{"type":22,"tag":178,"props":839,"children":840},{"style":221},[841],{"type":27,"value":842},"      qsq  ",{"type":22,"tag":178,"props":844,"children":845},{"style":195},[846],{"type":27,"value":847},"ON",{"type":22,"tag":178,"props":849,"children":850},{"style":206},[851],{"type":27,"value":852}," qsqt",{"type":22,"tag":178,"props":854,"children":855},{"style":221},[856],{"type":27,"value":224},{"type":22,"tag":178,"props":858,"children":859},{"style":206},[860],{"type":27,"value":861},"query_text_id",{"type":22,"tag":178,"props":863,"children":864},{"style":195},[865],{"type":27,"value":866}," =",{"type":22,"tag":178,"props":868,"children":869},{"style":206},[870],{"type":27,"value":871}," qsq",{"type":22,"tag":178,"props":873,"children":874},{"style":221},[875],{"type":27,"value":224},{"type":22,"tag":178,"props":877,"children":878},{"style":206},[879],{"type":27,"value":880},"query_text_id\n",{"type":22,"tag":178,"props":882,"children":883},{"class":180,"line":426},[884,888,892,896,901,906,910,914,918,922,927,932,936],{"type":22,"tag":178,"props":885,"children":886},{"style":195},[887],{"type":27,"value":824},{"type":22,"tag":178,"props":889,"children":890},{"style":206},[891],{"type":27,"value":574},{"type":22,"tag":178,"props":893,"children":894},{"style":221},[895],{"type":27,"value":224},{"type":22,"tag":178,"props":897,"children":898},{"style":206},[899],{"type":27,"value":900},"query_store_plan",{"type":22,"tag":178,"props":902,"children":903},{"style":221},[904],{"type":27,"value":905},"       qsp  ",{"type":22,"tag":178,"props":907,"children":908},{"style":195},[909],{"type":27,"value":847},{"type":22,"tag":178,"props":911,"children":912},{"style":206},[913],{"type":27,"value":871},{"type":22,"tag":178,"props":915,"children":916},{"style":221},[917],{"type":27,"value":224},{"type":22,"tag":178,"props":919,"children":920},{"style":206},[921],{"type":27,"value":705},{"type":22,"tag":178,"props":923,"children":924},{"style":195},[925],{"type":27,"value":926},"       =",{"type":22,"tag":178,"props":928,"children":929},{"style":206},[930],{"type":27,"value":931}," qsp",{"type":22,"tag":178,"props":933,"children":934},{"style":221},[935],{"type":27,"value":224},{"type":22,"tag":178,"props":937,"children":938},{"style":206},[939],{"type":27,"value":940},"query_id\n",{"type":22,"tag":178,"props":942,"children":943},{"class":180,"line":476},[944,948,952,956,961,966,970,974,978,983,987,992,996],{"type":22,"tag":178,"props":945,"children":946},{"style":195},[947],{"type":27,"value":824},{"type":22,"tag":178,"props":949,"children":950},{"style":206},[951],{"type":27,"value":574},{"type":22,"tag":178,"props":953,"children":954},{"style":221},[955],{"type":27,"value":224},{"type":22,"tag":178,"props":957,"children":958},{"style":206},[959],{"type":27,"value":960},"query_store_runtime_stats",{"type":22,"tag":178,"props":962,"children":963},{"style":221},[964],{"type":27,"value":965}," qsrs ",{"type":22,"tag":178,"props":967,"children":968},{"style":195},[969],{"type":27,"value":847},{"type":22,"tag":178,"props":971,"children":972},{"style":206},[973],{"type":27,"value":931},{"type":22,"tag":178,"props":975,"children":976},{"style":221},[977],{"type":27,"value":224},{"type":22,"tag":178,"props":979,"children":980},{"style":206},[981],{"type":27,"value":982},"plan_id",{"type":22,"tag":178,"props":984,"children":985},{"style":195},[986],{"type":27,"value":866},{"type":22,"tag":178,"props":988,"children":989},{"style":206},[990],{"type":27,"value":991}," qsrs",{"type":22,"tag":178,"props":993,"children":994},{"style":221},[995],{"type":27,"value":224},{"type":22,"tag":178,"props":997,"children":998},{"style":206},[999],{"type":27,"value":1000},"plan_id\n",{"type":22,"tag":178,"props":1002,"children":1003},{"class":180,"line":11},[1004,1008,1012,1016,1020,1025],{"type":22,"tag":178,"props":1005,"children":1006},{"style":195},[1007],{"type":27,"value":646},{"type":22,"tag":178,"props":1009,"children":1010},{"style":206},[1011],{"type":27,"value":991},{"type":22,"tag":178,"props":1013,"children":1014},{"style":221},[1015],{"type":27,"value":224},{"type":22,"tag":178,"props":1017,"children":1018},{"style":206},[1019],{"type":27,"value":726},{"type":22,"tag":178,"props":1021,"children":1022},{"style":195},[1023],{"type":27,"value":1024}," DESC",{"type":22,"tag":178,"props":1026,"children":1027},{"style":221},[1028],{"type":27,"value":661},{"type":22,"tag":148,"props":1030,"children":1032},{"id":1031},"_2-execution-plan-oku",[1033],{"type":27,"value":1034},"2. Execution Plan Oku",{"type":22,"tag":23,"props":1036,"children":1037},{},[1038,1040,1045],{"type":27,"value":1039},"Tespit ettiğin sorguyu SSMS'te seçip ",{"type":22,"tag":52,"props":1041,"children":1042},{},[1043],{"type":27,"value":1044},"Ctrl+M",{"type":27,"value":1046}," (Actual Execution Plan) ile çalıştır.",{"type":22,"tag":23,"props":1048,"children":1049},{},[1050],{"type":22,"tag":52,"props":1051,"children":1052},{},[1053],{"type":27,"value":1054},"Kırmızı bayraklar:",{"type":22,"tag":1056,"props":1057,"children":1058},"table",{},[1059,1078],{"type":22,"tag":1060,"props":1061,"children":1062},"thead",{},[1063],{"type":22,"tag":1064,"props":1065,"children":1066},"tr",{},[1067,1073],{"type":22,"tag":1068,"props":1069,"children":1070},"th",{},[1071],{"type":27,"value":1072},"Plan Operatörü",{"type":22,"tag":1068,"props":1074,"children":1075},{},[1076],{"type":27,"value":1077},"Ne anlama geliyor",{"type":22,"tag":1079,"props":1080,"children":1081},"tbody",{},[1082,1100,1117,1134,1153],{"type":22,"tag":1064,"props":1083,"children":1084},{},[1085,1095],{"type":22,"tag":1086,"props":1087,"children":1088},"td",{},[1089],{"type":22,"tag":174,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":27,"value":1094},"Table Scan",{"type":22,"tag":1086,"props":1096,"children":1097},{},[1098],{"type":27,"value":1099},"Index yok, tüm tablo okunuyor",{"type":22,"tag":1064,"props":1101,"children":1102},{},[1103,1112],{"type":22,"tag":1086,"props":1104,"children":1105},{},[1106],{"type":22,"tag":174,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":27,"value":1111},"Clustered Index Scan",{"type":22,"tag":1086,"props":1113,"children":1114},{},[1115],{"type":27,"value":1116},"Index var ama tamamı okunuyor (range problemi)",{"type":22,"tag":1064,"props":1118,"children":1119},{},[1120,1129],{"type":22,"tag":1086,"props":1121,"children":1122},{},[1123],{"type":22,"tag":174,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":27,"value":1128},"Key Lookup",{"type":22,"tag":1086,"props":1130,"children":1131},{},[1132],{"type":27,"value":1133},"Index eksik sütunlar için ana tabloya gidiliyor",{"type":22,"tag":1064,"props":1135,"children":1136},{},[1137,1148],{"type":22,"tag":1086,"props":1138,"children":1139},{},[1140,1146],{"type":22,"tag":174,"props":1141,"children":1143},{"className":1142},[],[1144],{"type":27,"value":1145},"Hash Match",{"type":27,"value":1147}," (büyük maliyet)",{"type":22,"tag":1086,"props":1149,"children":1150},{},[1151],{"type":27,"value":1152},"Bellekte join yapılıyor, index join daha iyi olur",{"type":22,"tag":1064,"props":1154,"children":1155},{},[1156,1161],{"type":22,"tag":1086,"props":1157,"children":1158},{},[1159],{"type":27,"value":1160},"Kalın ok",{"type":22,"tag":1086,"props":1162,"children":1163},{},[1164],{"type":27,"value":1165},"Beklenenin çok üzerinde satır transferi",{"type":22,"tag":148,"props":1167,"children":1169},{"id":1168},"_3-missing-index-önerisi",[1170],{"type":27,"value":1171},"3. Missing Index Önerisi",{"type":22,"tag":23,"props":1173,"children":1174},{},[1175],{"type":27,"value":1176},"SQL Server çoğu zaman kendi önerisini verir. Plan'ın üst kısmında sarı \"Missing Index Details\" uyarısına tıkla ya da:",{"type":22,"tag":167,"props":1178,"children":1180},{"code":1179,"language":170,"meta":7,"className":171,"style":7},"SELECT TOP 10\n    mid.statement                                       AS tablo,\n    migs.avg_total_user_cost * migs.avg_user_impact\n        * (migs.user_seeks + migs.user_scans)           AS etki_skoru,\n    mid.equality_columns,\n    mid.inequality_columns,\n    mid.included_columns\nFROM sys.dm_db_missing_index_details  mid\nJOIN sys.dm_db_missing_index_groups   mig  ON mid.index_handle = mig.index_handle\nJOIN sys.dm_db_missing_index_group_stats migs ON mig.index_group_handle = migs.group_handle\nORDER BY etki_skoru DESC;\n",[1181],{"type":22,"tag":174,"props":1182,"children":1183},{"__ignoreMap":7},[1184,1199,1226,1262,1321,1341,1361,1377,1402,1463,1522],{"type":22,"tag":178,"props":1185,"children":1186},{"class":180,"line":181},[1187,1191,1195],{"type":22,"tag":178,"props":1188,"children":1189},{"style":195},[1190],{"type":27,"value":198},{"type":22,"tag":178,"props":1192,"children":1193},{"style":195},[1194],{"type":27,"value":203},{"type":22,"tag":178,"props":1196,"children":1197},{"style":206},[1198],{"type":27,"value":209},{"type":22,"tag":178,"props":1200,"children":1201},{"class":180,"line":191},[1202,1207,1211,1216,1221],{"type":22,"tag":178,"props":1203,"children":1204},{"style":206},[1205],{"type":27,"value":1206},"    mid",{"type":22,"tag":178,"props":1208,"children":1209},{"style":221},[1210],{"type":27,"value":224},{"type":22,"tag":178,"props":1212,"children":1213},{"style":206},[1214],{"type":27,"value":1215},"statement",{"type":22,"tag":178,"props":1217,"children":1218},{"style":195},[1219],{"type":27,"value":1220},"                                       AS",{"type":22,"tag":178,"props":1222,"children":1223},{"style":221},[1224],{"type":27,"value":1225}," tablo,\n",{"type":22,"tag":178,"props":1227,"children":1228},{"class":180,"line":212},[1229,1234,1238,1243,1248,1253,1257],{"type":22,"tag":178,"props":1230,"children":1231},{"style":206},[1232],{"type":27,"value":1233},"    migs",{"type":22,"tag":178,"props":1235,"children":1236},{"style":221},[1237],{"type":27,"value":224},{"type":22,"tag":178,"props":1239,"children":1240},{"style":206},[1241],{"type":27,"value":1242},"avg_total_user_cost",{"type":22,"tag":178,"props":1244,"children":1245},{"style":195},[1246],{"type":27,"value":1247}," *",{"type":22,"tag":178,"props":1249,"children":1250},{"style":206},[1251],{"type":27,"value":1252}," migs",{"type":22,"tag":178,"props":1254,"children":1255},{"style":221},[1256],{"type":27,"value":224},{"type":22,"tag":178,"props":1258,"children":1259},{"style":206},[1260],{"type":27,"value":1261},"avg_user_impact\n",{"type":22,"tag":178,"props":1263,"children":1264},{"class":180,"line":261},[1265,1270,1275,1280,1284,1289,1294,1298,1302,1307,1312,1316],{"type":22,"tag":178,"props":1266,"children":1267},{"style":195},[1268],{"type":27,"value":1269},"        *",{"type":22,"tag":178,"props":1271,"children":1272},{"style":221},[1273],{"type":27,"value":1274}," (",{"type":22,"tag":178,"props":1276,"children":1277},{"style":206},[1278],{"type":27,"value":1279},"migs",{"type":22,"tag":178,"props":1281,"children":1282},{"style":221},[1283],{"type":27,"value":224},{"type":22,"tag":178,"props":1285,"children":1286},{"style":206},[1287],{"type":27,"value":1288},"user_seeks",{"type":22,"tag":178,"props":1290,"children":1291},{"style":195},[1292],{"type":27,"value":1293}," +",{"type":22,"tag":178,"props":1295,"children":1296},{"style":206},[1297],{"type":27,"value":1252},{"type":22,"tag":178,"props":1299,"children":1300},{"style":221},[1301],{"type":27,"value":224},{"type":22,"tag":178,"props":1303,"children":1304},{"style":206},[1305],{"type":27,"value":1306},"user_scans",{"type":22,"tag":178,"props":1308,"children":1309},{"style":221},[1310],{"type":27,"value":1311},")           ",{"type":22,"tag":178,"props":1313,"children":1314},{"style":195},[1315],{"type":27,"value":555},{"type":22,"tag":178,"props":1317,"children":1318},{"style":221},[1319],{"type":27,"value":1320}," etki_skoru,\n",{"type":22,"tag":178,"props":1322,"children":1323},{"class":180,"line":304},[1324,1328,1332,1337],{"type":22,"tag":178,"props":1325,"children":1326},{"style":206},[1327],{"type":27,"value":1206},{"type":22,"tag":178,"props":1329,"children":1330},{"style":221},[1331],{"type":27,"value":224},{"type":22,"tag":178,"props":1333,"children":1334},{"style":206},[1335],{"type":27,"value":1336},"equality_columns",{"type":22,"tag":178,"props":1338,"children":1339},{"style":221},[1340],{"type":27,"value":322},{"type":22,"tag":178,"props":1342,"children":1343},{"class":180,"line":325},[1344,1348,1352,1357],{"type":22,"tag":178,"props":1345,"children":1346},{"style":206},[1347],{"type":27,"value":1206},{"type":22,"tag":178,"props":1349,"children":1350},{"style":221},[1351],{"type":27,"value":224},{"type":22,"tag":178,"props":1353,"children":1354},{"style":206},[1355],{"type":27,"value":1356},"inequality_columns",{"type":22,"tag":178,"props":1358,"children":1359},{"style":221},[1360],{"type":27,"value":322},{"type":22,"tag":178,"props":1362,"children":1363},{"class":180,"line":399},[1364,1368,1372],{"type":22,"tag":178,"props":1365,"children":1366},{"style":206},[1367],{"type":27,"value":1206},{"type":22,"tag":178,"props":1369,"children":1370},{"style":221},[1371],{"type":27,"value":224},{"type":22,"tag":178,"props":1373,"children":1374},{"style":206},[1375],{"type":27,"value":1376},"included_columns\n",{"type":22,"tag":178,"props":1378,"children":1379},{"class":180,"line":426},[1380,1384,1388,1392,1397],{"type":22,"tag":178,"props":1381,"children":1382},{"style":195},[1383],{"type":27,"value":569},{"type":22,"tag":178,"props":1385,"children":1386},{"style":206},[1387],{"type":27,"value":574},{"type":22,"tag":178,"props":1389,"children":1390},{"style":221},[1391],{"type":27,"value":224},{"type":22,"tag":178,"props":1393,"children":1394},{"style":206},[1395],{"type":27,"value":1396},"dm_db_missing_index_details",{"type":22,"tag":178,"props":1398,"children":1399},{"style":221},[1400],{"type":27,"value":1401},"  mid\n",{"type":22,"tag":178,"props":1403,"children":1404},{"class":180,"line":476},[1405,1409,1413,1417,1422,1427,1431,1436,1440,1445,1449,1454,1458],{"type":22,"tag":178,"props":1406,"children":1407},{"style":195},[1408],{"type":27,"value":824},{"type":22,"tag":178,"props":1410,"children":1411},{"style":206},[1412],{"type":27,"value":574},{"type":22,"tag":178,"props":1414,"children":1415},{"style":221},[1416],{"type":27,"value":224},{"type":22,"tag":178,"props":1418,"children":1419},{"style":206},[1420],{"type":27,"value":1421},"dm_db_missing_index_groups",{"type":22,"tag":178,"props":1423,"children":1424},{"style":221},[1425],{"type":27,"value":1426},"   mig  ",{"type":22,"tag":178,"props":1428,"children":1429},{"style":195},[1430],{"type":27,"value":847},{"type":22,"tag":178,"props":1432,"children":1433},{"style":206},[1434],{"type":27,"value":1435}," mid",{"type":22,"tag":178,"props":1437,"children":1438},{"style":221},[1439],{"type":27,"value":224},{"type":22,"tag":178,"props":1441,"children":1442},{"style":206},[1443],{"type":27,"value":1444},"index_handle",{"type":22,"tag":178,"props":1446,"children":1447},{"style":195},[1448],{"type":27,"value":866},{"type":22,"tag":178,"props":1450,"children":1451},{"style":206},[1452],{"type":27,"value":1453}," mig",{"type":22,"tag":178,"props":1455,"children":1456},{"style":221},[1457],{"type":27,"value":224},{"type":22,"tag":178,"props":1459,"children":1460},{"style":206},[1461],{"type":27,"value":1462},"index_handle\n",{"type":22,"tag":178,"props":1464,"children":1465},{"class":180,"line":11},[1466,1470,1474,1478,1483,1488,1492,1496,1500,1505,1509,1513,1517],{"type":22,"tag":178,"props":1467,"children":1468},{"style":195},[1469],{"type":27,"value":824},{"type":22,"tag":178,"props":1471,"children":1472},{"style":206},[1473],{"type":27,"value":574},{"type":22,"tag":178,"props":1475,"children":1476},{"style":221},[1477],{"type":27,"value":224},{"type":22,"tag":178,"props":1479,"children":1480},{"style":206},[1481],{"type":27,"value":1482},"dm_db_missing_index_group_stats",{"type":22,"tag":178,"props":1484,"children":1485},{"style":221},[1486],{"type":27,"value":1487}," migs ",{"type":22,"tag":178,"props":1489,"children":1490},{"style":195},[1491],{"type":27,"value":847},{"type":22,"tag":178,"props":1493,"children":1494},{"style":206},[1495],{"type":27,"value":1453},{"type":22,"tag":178,"props":1497,"children":1498},{"style":221},[1499],{"type":27,"value":224},{"type":22,"tag":178,"props":1501,"children":1502},{"style":206},[1503],{"type":27,"value":1504},"index_group_handle",{"type":22,"tag":178,"props":1506,"children":1507},{"style":195},[1508],{"type":27,"value":866},{"type":22,"tag":178,"props":1510,"children":1511},{"style":206},[1512],{"type":27,"value":1252},{"type":22,"tag":178,"props":1514,"children":1515},{"style":221},[1516],{"type":27,"value":224},{"type":22,"tag":178,"props":1518,"children":1519},{"style":206},[1520],{"type":27,"value":1521},"group_handle\n",{"type":22,"tag":178,"props":1523,"children":1524},{"class":180,"line":563},[1525,1529,1534,1538],{"type":22,"tag":178,"props":1526,"children":1527},{"style":195},[1528],{"type":27,"value":646},{"type":22,"tag":178,"props":1530,"children":1531},{"style":221},[1532],{"type":27,"value":1533}," etki_skoru ",{"type":22,"tag":178,"props":1535,"children":1536},{"style":195},[1537],{"type":27,"value":656},{"type":22,"tag":178,"props":1539,"children":1540},{"style":221},[1541],{"type":27,"value":661},{"type":22,"tag":1543,"props":1544,"children":1545},"blockquote",{},[1546],{"type":22,"tag":23,"props":1547,"children":1548},{},[1549,1554],{"type":22,"tag":52,"props":1550,"children":1551},{},[1552],{"type":27,"value":1553},"Uyarı:",{"type":27,"value":1555}," Her öneriyi doğrudan uygulamayın. Her index yazma işlemlerini yavaşlatır. Fayda\u002Fmaliyet analizi yapın.",{"type":22,"tag":138,"props":1557,"children":1558},{},[],{"type":22,"tag":35,"props":1560,"children":1562},{"id":1561},"postgresql-adım-adım-teşhis",[1563],{"type":27,"value":1564},"PostgreSQL — Adım Adım Teşhis",{"type":22,"tag":148,"props":1566,"children":1568},{"id":1567},"_1-en-yavaş-sorguları-bul-1",[1569],{"type":27,"value":153},{"type":22,"tag":23,"props":1571,"children":1572},{},[1573,1579],{"type":22,"tag":174,"props":1574,"children":1576},{"className":1575},[],[1577],{"type":27,"value":1578},"pg_stat_statements",{"type":27,"value":1580}," eklentisi (genellikle varsayılan yüklü) şart:",{"type":22,"tag":167,"props":1582,"children":1584},{"code":1583,"language":170,"meta":7,"className":171,"style":7},"-- Etkin değilse:\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n",[1585],{"type":22,"tag":174,"props":1586,"children":1587},{"__ignoreMap":7},[1588,1596],{"type":22,"tag":178,"props":1589,"children":1590},{"class":180,"line":181},[1591],{"type":22,"tag":178,"props":1592,"children":1593},{"style":185},[1594],{"type":27,"value":1595},"-- Etkin değilse:\n",{"type":22,"tag":178,"props":1597,"children":1598},{"class":180,"line":191},[1599,1604,1609,1614,1619,1624],{"type":22,"tag":178,"props":1600,"children":1601},{"style":195},[1602],{"type":27,"value":1603},"CREATE",{"type":22,"tag":178,"props":1605,"children":1606},{"style":221},[1607],{"type":27,"value":1608}," EXTENSION ",{"type":22,"tag":178,"props":1610,"children":1611},{"style":195},[1612],{"type":27,"value":1613},"IF",{"type":22,"tag":178,"props":1615,"children":1616},{"style":195},[1617],{"type":27,"value":1618}," NOT",{"type":22,"tag":178,"props":1620,"children":1621},{"style":195},[1622],{"type":27,"value":1623}," EXISTS",{"type":22,"tag":178,"props":1625,"children":1626},{"style":221},[1627],{"type":27,"value":1628}," pg_stat_statements;\n",{"type":22,"tag":167,"props":1630,"children":1632},{"code":1631,"language":170,"meta":7,"className":171,"style":7},"-- En yavaş 10 sorgu (ortalama süreye göre)\nSELECT\n    round(mean_exec_time::numeric, 2)  AS ort_ms,\n    calls                              AS cagri_sayisi,\n    round(total_exec_time::numeric, 2) AS toplam_ms,\n    LEFT(query, 120)                   AS sorgu\nFROM pg_stat_statements\nORDER BY mean_exec_time DESC\nLIMIT 10;\n",[1633],{"type":22,"tag":174,"props":1634,"children":1635},{"__ignoreMap":7},[1636,1644,1652,1693,1710,1747,1779,1791,1808],{"type":22,"tag":178,"props":1637,"children":1638},{"class":180,"line":181},[1639],{"type":22,"tag":178,"props":1640,"children":1641},{"style":185},[1642],{"type":27,"value":1643},"-- En yavaş 10 sorgu (ortalama süreye göre)\n",{"type":22,"tag":178,"props":1645,"children":1646},{"class":180,"line":191},[1647],{"type":22,"tag":178,"props":1648,"children":1649},{"style":195},[1650],{"type":27,"value":1651},"SELECT\n",{"type":22,"tag":178,"props":1653,"children":1654},{"class":180,"line":212},[1655,1660,1665,1670,1675,1680,1684,1688],{"type":22,"tag":178,"props":1656,"children":1657},{"style":206},[1658],{"type":27,"value":1659},"    round",{"type":22,"tag":178,"props":1661,"children":1662},{"style":221},[1663],{"type":27,"value":1664},"(mean_exec_time::",{"type":22,"tag":178,"props":1666,"children":1667},{"style":195},[1668],{"type":27,"value":1669},"numeric",{"type":22,"tag":178,"props":1671,"children":1672},{"style":221},[1673],{"type":27,"value":1674},", ",{"type":22,"tag":178,"props":1676,"children":1677},{"style":206},[1678],{"type":27,"value":1679},"2",{"type":22,"tag":178,"props":1681,"children":1682},{"style":221},[1683],{"type":27,"value":550},{"type":22,"tag":178,"props":1685,"children":1686},{"style":195},[1687],{"type":27,"value":555},{"type":22,"tag":178,"props":1689,"children":1690},{"style":221},[1691],{"type":27,"value":1692}," ort_ms,\n",{"type":22,"tag":178,"props":1694,"children":1695},{"class":180,"line":261},[1696,1701,1705],{"type":22,"tag":178,"props":1697,"children":1698},{"style":221},[1699],{"type":27,"value":1700},"    calls                              ",{"type":22,"tag":178,"props":1702,"children":1703},{"style":195},[1704],{"type":27,"value":555},{"type":22,"tag":178,"props":1706,"children":1707},{"style":221},[1708],{"type":27,"value":1709}," cagri_sayisi,\n",{"type":22,"tag":178,"props":1711,"children":1712},{"class":180,"line":304},[1713,1717,1722,1726,1730,1734,1738,1742],{"type":22,"tag":178,"props":1714,"children":1715},{"style":206},[1716],{"type":27,"value":1659},{"type":22,"tag":178,"props":1718,"children":1719},{"style":221},[1720],{"type":27,"value":1721},"(total_exec_time::",{"type":22,"tag":178,"props":1723,"children":1724},{"style":195},[1725],{"type":27,"value":1669},{"type":22,"tag":178,"props":1727,"children":1728},{"style":221},[1729],{"type":27,"value":1674},{"type":22,"tag":178,"props":1731,"children":1732},{"style":206},[1733],{"type":27,"value":1679},{"type":22,"tag":178,"props":1735,"children":1736},{"style":221},[1737],{"type":27,"value":382},{"type":22,"tag":178,"props":1739,"children":1740},{"style":195},[1741],{"type":27,"value":555},{"type":22,"tag":178,"props":1743,"children":1744},{"style":221},[1745],{"type":27,"value":1746}," toplam_ms,\n",{"type":22,"tag":178,"props":1748,"children":1749},{"class":180,"line":325},[1750,1755,1760,1765,1770,1774],{"type":22,"tag":178,"props":1751,"children":1752},{"style":206},[1753],{"type":27,"value":1754},"    LEFT",{"type":22,"tag":178,"props":1756,"children":1757},{"style":221},[1758],{"type":27,"value":1759},"(query, ",{"type":22,"tag":178,"props":1761,"children":1762},{"style":206},[1763],{"type":27,"value":1764},"120",{"type":22,"tag":178,"props":1766,"children":1767},{"style":221},[1768],{"type":27,"value":1769},")                   ",{"type":22,"tag":178,"props":1771,"children":1772},{"style":195},[1773],{"type":27,"value":555},{"type":22,"tag":178,"props":1775,"children":1776},{"style":221},[1777],{"type":27,"value":1778}," sorgu\n",{"type":22,"tag":178,"props":1780,"children":1781},{"class":180,"line":399},[1782,1786],{"type":22,"tag":178,"props":1783,"children":1784},{"style":195},[1785],{"type":27,"value":569},{"type":22,"tag":178,"props":1787,"children":1788},{"style":221},[1789],{"type":27,"value":1790}," pg_stat_statements\n",{"type":22,"tag":178,"props":1792,"children":1793},{"class":180,"line":426},[1794,1798,1803],{"type":22,"tag":178,"props":1795,"children":1796},{"style":195},[1797],{"type":27,"value":646},{"type":22,"tag":178,"props":1799,"children":1800},{"style":221},[1801],{"type":27,"value":1802}," mean_exec_time ",{"type":22,"tag":178,"props":1804,"children":1805},{"style":195},[1806],{"type":27,"value":1807},"DESC\n",{"type":22,"tag":178,"props":1809,"children":1810},{"class":180,"line":476},[1811,1816,1821],{"type":22,"tag":178,"props":1812,"children":1813},{"style":195},[1814],{"type":27,"value":1815},"LIMIT",{"type":22,"tag":178,"props":1817,"children":1818},{"style":206},[1819],{"type":27,"value":1820}," 10",{"type":22,"tag":178,"props":1822,"children":1823},{"style":221},[1824],{"type":27,"value":661},{"type":22,"tag":148,"props":1826,"children":1828},{"id":1827},"_2-explain-analyze-ile-planı-i̇ncele",[1829],{"type":27,"value":1830},"2. EXPLAIN ANALYZE ile Planı İncele",{"type":22,"tag":167,"props":1832,"children":1834},{"code":1833,"language":170,"meta":7,"className":171,"style":7},"EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)\nSELECT *\nFROM siparisler s\nJOIN musteriler m ON s.musteri_id = m.id\nWHERE s.tarih >= '2026-01-01'\n  AND s.durum = 'bekliyor';\n",[1835],{"type":22,"tag":174,"props":1836,"children":1837},{"__ignoreMap":7},[1838,1855,1867,1879,1927,1959],{"type":22,"tag":178,"props":1839,"children":1840},{"class":180,"line":181},[1841,1846,1851],{"type":22,"tag":178,"props":1842,"children":1843},{"style":221},[1844],{"type":27,"value":1845},"EXPLAIN (ANALYZE, BUFFERS, FORMAT ",{"type":22,"tag":178,"props":1847,"children":1848},{"style":195},[1849],{"type":27,"value":1850},"TEXT",{"type":22,"tag":178,"props":1852,"children":1853},{"style":221},[1854],{"type":27,"value":473},{"type":22,"tag":178,"props":1856,"children":1857},{"class":180,"line":191},[1858,1862],{"type":22,"tag":178,"props":1859,"children":1860},{"style":195},[1861],{"type":27,"value":198},{"type":22,"tag":178,"props":1863,"children":1864},{"style":195},[1865],{"type":27,"value":1866}," *\n",{"type":22,"tag":178,"props":1868,"children":1869},{"class":180,"line":212},[1870,1874],{"type":22,"tag":178,"props":1871,"children":1872},{"style":195},[1873],{"type":27,"value":569},{"type":22,"tag":178,"props":1875,"children":1876},{"style":221},[1877],{"type":27,"value":1878}," siparisler s\n",{"type":22,"tag":178,"props":1880,"children":1881},{"class":180,"line":261},[1882,1886,1891,1895,1900,1904,1909,1913,1918,1922],{"type":22,"tag":178,"props":1883,"children":1884},{"style":195},[1885],{"type":27,"value":824},{"type":22,"tag":178,"props":1887,"children":1888},{"style":221},[1889],{"type":27,"value":1890}," musteriler m ",{"type":22,"tag":178,"props":1892,"children":1893},{"style":195},[1894],{"type":27,"value":847},{"type":22,"tag":178,"props":1896,"children":1897},{"style":206},[1898],{"type":27,"value":1899}," s",{"type":22,"tag":178,"props":1901,"children":1902},{"style":221},[1903],{"type":27,"value":224},{"type":22,"tag":178,"props":1905,"children":1906},{"style":206},[1907],{"type":27,"value":1908},"musteri_id",{"type":22,"tag":178,"props":1910,"children":1911},{"style":195},[1912],{"type":27,"value":866},{"type":22,"tag":178,"props":1914,"children":1915},{"style":206},[1916],{"type":27,"value":1917}," m",{"type":22,"tag":178,"props":1919,"children":1920},{"style":221},[1921],{"type":27,"value":224},{"type":22,"tag":178,"props":1923,"children":1924},{"style":206},[1925],{"type":27,"value":1926},"id\n",{"type":22,"tag":178,"props":1928,"children":1929},{"class":180,"line":304},[1930,1935,1939,1943,1948,1953],{"type":22,"tag":178,"props":1931,"children":1932},{"style":195},[1933],{"type":27,"value":1934},"WHERE",{"type":22,"tag":178,"props":1936,"children":1937},{"style":206},[1938],{"type":27,"value":1899},{"type":22,"tag":178,"props":1940,"children":1941},{"style":221},[1942],{"type":27,"value":224},{"type":22,"tag":178,"props":1944,"children":1945},{"style":206},[1946],{"type":27,"value":1947},"tarih",{"type":22,"tag":178,"props":1949,"children":1950},{"style":195},[1951],{"type":27,"value":1952}," >=",{"type":22,"tag":178,"props":1954,"children":1956},{"style":1955},"--shiki-default:#9ECBFF",[1957],{"type":27,"value":1958}," '2026-01-01'\n",{"type":22,"tag":178,"props":1960,"children":1961},{"class":180,"line":325},[1962,1967,1971,1975,1980,1984,1989],{"type":22,"tag":178,"props":1963,"children":1964},{"style":195},[1965],{"type":27,"value":1966},"  AND",{"type":22,"tag":178,"props":1968,"children":1969},{"style":206},[1970],{"type":27,"value":1899},{"type":22,"tag":178,"props":1972,"children":1973},{"style":221},[1974],{"type":27,"value":224},{"type":22,"tag":178,"props":1976,"children":1977},{"style":206},[1978],{"type":27,"value":1979},"durum",{"type":22,"tag":178,"props":1981,"children":1982},{"style":195},[1983],{"type":27,"value":866},{"type":22,"tag":178,"props":1985,"children":1986},{"style":1955},[1987],{"type":27,"value":1988}," 'bekliyor'",{"type":22,"tag":178,"props":1990,"children":1991},{"style":221},[1992],{"type":27,"value":661},{"type":22,"tag":23,"props":1994,"children":1995},{},[1996],{"type":22,"tag":52,"props":1997,"children":1998},{},[1999],{"type":27,"value":2000},"Dikkat edilecekler:",{"type":22,"tag":167,"props":2002,"children":2004},{"code":2003},"Seq Scan on siparisler  (cost=0.00..45230.00 rows=892341 ...)\n",[2005],{"type":22,"tag":174,"props":2006,"children":2007},{"__ignoreMap":7},[2008],{"type":27,"value":2003},{"type":22,"tag":23,"props":2010,"children":2011},{},[2012,2018,2020,2026,2028,2033],{"type":22,"tag":174,"props":2013,"children":2015},{"className":2014},[],[2016],{"type":27,"value":2017},"Seq Scan",{"type":27,"value":2019}," gördüğünde Index Scan bekliyorsanız sorun var. ",{"type":22,"tag":174,"props":2021,"children":2023},{"className":2022},[],[2024],{"type":27,"value":2025},"rows=892341",{"type":27,"value":2027}," gerçek satır sayısından çok yüksekse ",{"type":22,"tag":52,"props":2029,"children":2030},{},[2031],{"type":27,"value":2032},"istatistikler güncel değil",{"type":27,"value":2034}," demektir.",{"type":22,"tag":167,"props":2036,"children":2038},{"code":2037,"language":170,"meta":7,"className":171,"style":7},"ANALYZE siparisler;  -- İstatistikleri güncelle\n",[2039],{"type":22,"tag":174,"props":2040,"children":2041},{"__ignoreMap":7},[2042],{"type":22,"tag":178,"props":2043,"children":2044},{"class":180,"line":181},[2045,2050],{"type":22,"tag":178,"props":2046,"children":2047},{"style":221},[2048],{"type":27,"value":2049},"ANALYZE siparisler;  ",{"type":22,"tag":178,"props":2051,"children":2052},{"style":185},[2053],{"type":27,"value":2054},"-- İstatistikleri güncelle\n",{"type":22,"tag":148,"props":2056,"children":2058},{"id":2057},"_3-gerçek-zamanlı-aktif-sorgular",[2059],{"type":27,"value":2060},"3. Gerçek Zamanlı Aktif Sorgular",{"type":22,"tag":23,"props":2062,"children":2063},{},[2064],{"type":27,"value":2065},"Şu an ne çalışıyor, ne blokluyor:",{"type":22,"tag":167,"props":2067,"children":2069},{"code":2068,"language":170,"meta":7,"className":171,"style":7},"SELECT\n    pid,\n    now() - pg_stat_activity.query_start AS sure,\n    query,\n    state,\n    wait_event_type,\n    wait_event\nFROM pg_stat_activity\nWHERE state != 'idle'\n  AND query_start \u003C now() - INTERVAL '5 seconds'\nORDER BY sure DESC;\n",[2070],{"type":22,"tag":174,"props":2071,"children":2072},{"__ignoreMap":7},[2073,2080,2088,2130,2138,2150,2158,2166,2178,2200,2240],{"type":22,"tag":178,"props":2074,"children":2075},{"class":180,"line":181},[2076],{"type":22,"tag":178,"props":2077,"children":2078},{"style":195},[2079],{"type":27,"value":1651},{"type":22,"tag":178,"props":2081,"children":2082},{"class":180,"line":191},[2083],{"type":22,"tag":178,"props":2084,"children":2085},{"style":221},[2086],{"type":27,"value":2087},"    pid,\n",{"type":22,"tag":178,"props":2089,"children":2090},{"class":180,"line":212},[2091,2096,2101,2106,2111,2115,2120,2125],{"type":22,"tag":178,"props":2092,"children":2093},{"style":195},[2094],{"type":27,"value":2095},"    now",{"type":22,"tag":178,"props":2097,"children":2098},{"style":221},[2099],{"type":27,"value":2100},"() ",{"type":22,"tag":178,"props":2102,"children":2103},{"style":195},[2104],{"type":27,"value":2105},"-",{"type":22,"tag":178,"props":2107,"children":2108},{"style":206},[2109],{"type":27,"value":2110}," pg_stat_activity",{"type":22,"tag":178,"props":2112,"children":2113},{"style":221},[2114],{"type":27,"value":224},{"type":22,"tag":178,"props":2116,"children":2117},{"style":206},[2118],{"type":27,"value":2119},"query_start",{"type":22,"tag":178,"props":2121,"children":2122},{"style":195},[2123],{"type":27,"value":2124}," AS",{"type":22,"tag":178,"props":2126,"children":2127},{"style":221},[2128],{"type":27,"value":2129}," sure,\n",{"type":22,"tag":178,"props":2131,"children":2132},{"class":180,"line":261},[2133],{"type":22,"tag":178,"props":2134,"children":2135},{"style":221},[2136],{"type":27,"value":2137},"    query,\n",{"type":22,"tag":178,"props":2139,"children":2140},{"class":180,"line":304},[2141,2146],{"type":22,"tag":178,"props":2142,"children":2143},{"style":195},[2144],{"type":27,"value":2145},"    state",{"type":22,"tag":178,"props":2147,"children":2148},{"style":221},[2149],{"type":27,"value":322},{"type":22,"tag":178,"props":2151,"children":2152},{"class":180,"line":325},[2153],{"type":22,"tag":178,"props":2154,"children":2155},{"style":221},[2156],{"type":27,"value":2157},"    wait_event_type,\n",{"type":22,"tag":178,"props":2159,"children":2160},{"class":180,"line":399},[2161],{"type":22,"tag":178,"props":2162,"children":2163},{"style":221},[2164],{"type":27,"value":2165},"    wait_event\n",{"type":22,"tag":178,"props":2167,"children":2168},{"class":180,"line":426},[2169,2173],{"type":22,"tag":178,"props":2170,"children":2171},{"style":195},[2172],{"type":27,"value":569},{"type":22,"tag":178,"props":2174,"children":2175},{"style":221},[2176],{"type":27,"value":2177}," pg_stat_activity\n",{"type":22,"tag":178,"props":2179,"children":2180},{"class":180,"line":476},[2181,2185,2190,2195],{"type":22,"tag":178,"props":2182,"children":2183},{"style":195},[2184],{"type":27,"value":1934},{"type":22,"tag":178,"props":2186,"children":2187},{"style":195},[2188],{"type":27,"value":2189}," state",{"type":22,"tag":178,"props":2191,"children":2192},{"style":195},[2193],{"type":27,"value":2194}," !=",{"type":22,"tag":178,"props":2196,"children":2197},{"style":1955},[2198],{"type":27,"value":2199}," 'idle'\n",{"type":22,"tag":178,"props":2201,"children":2202},{"class":180,"line":11},[2203,2207,2212,2217,2222,2226,2230,2235],{"type":22,"tag":178,"props":2204,"children":2205},{"style":195},[2206],{"type":27,"value":1966},{"type":22,"tag":178,"props":2208,"children":2209},{"style":221},[2210],{"type":27,"value":2211}," query_start ",{"type":22,"tag":178,"props":2213,"children":2214},{"style":195},[2215],{"type":27,"value":2216},"\u003C",{"type":22,"tag":178,"props":2218,"children":2219},{"style":195},[2220],{"type":27,"value":2221}," now",{"type":22,"tag":178,"props":2223,"children":2224},{"style":221},[2225],{"type":27,"value":2100},{"type":22,"tag":178,"props":2227,"children":2228},{"style":195},[2229],{"type":27,"value":2105},{"type":22,"tag":178,"props":2231,"children":2232},{"style":221},[2233],{"type":27,"value":2234}," INTERVAL ",{"type":22,"tag":178,"props":2236,"children":2237},{"style":1955},[2238],{"type":27,"value":2239},"'5 seconds'\n",{"type":22,"tag":178,"props":2241,"children":2242},{"class":180,"line":563},[2243,2247,2252,2256],{"type":22,"tag":178,"props":2244,"children":2245},{"style":195},[2246],{"type":27,"value":646},{"type":22,"tag":178,"props":2248,"children":2249},{"style":221},[2250],{"type":27,"value":2251}," sure ",{"type":22,"tag":178,"props":2253,"children":2254},{"style":195},[2255],{"type":27,"value":656},{"type":22,"tag":178,"props":2257,"children":2258},{"style":221},[2259],{"type":27,"value":661},{"type":22,"tag":23,"props":2261,"children":2262},{},[2263,2269,2271,2277],{"type":22,"tag":174,"props":2264,"children":2266},{"className":2265},[],[2267],{"type":27,"value":2268},"wait_event_type = 'Lock'",{"type":27,"value":2270}," görüyorsanız bir sorgu diğerini blokluyor demektir. ",{"type":22,"tag":174,"props":2272,"children":2274},{"className":2273},[],[2275],{"type":27,"value":2276},"pg_cancel_backend(pid)",{"type":27,"value":2278}," ile uzun bloklayan sorguyu sonlandırabilirsiniz.",{"type":22,"tag":138,"props":2280,"children":2281},{},[],{"type":22,"tag":35,"props":2283,"children":2285},{"id":2284},"her-i̇kisinde-geçerli-en-sık-gözden-kaçan-hatalar",[2286],{"type":27,"value":2287},"Her İkisinde Geçerli: En Sık Gözden Kaçan Hatalar",{"type":22,"tag":148,"props":2289,"children":2291},{"id":2290},"index-var-ama-kullanılmıyor",[2292],{"type":27,"value":2293},"Index var ama kullanılmıyor",{"type":22,"tag":167,"props":2295,"children":2297},{"code":2296,"language":170,"meta":7,"className":171,"style":7},"-- YANLIŞ: fonksiyon index'i devre dışı bırakır\nWHERE UPPER(email) = 'TEST@TEST.COM'\n\n-- DOĞRU: veriyi normalize et veya functional index oluştur\nWHERE email = 'test@test.com'\n",[2298],{"type":22,"tag":174,"props":2299,"children":2300},{"__ignoreMap":7},[2301,2309,2336,2345,2353],{"type":22,"tag":178,"props":2302,"children":2303},{"class":180,"line":181},[2304],{"type":22,"tag":178,"props":2305,"children":2306},{"style":185},[2307],{"type":27,"value":2308},"-- YANLIŞ: fonksiyon index'i devre dışı bırakır\n",{"type":22,"tag":178,"props":2310,"children":2311},{"class":180,"line":191},[2312,2316,2321,2326,2331],{"type":22,"tag":178,"props":2313,"children":2314},{"style":195},[2315],{"type":27,"value":1934},{"type":22,"tag":178,"props":2317,"children":2318},{"style":206},[2319],{"type":27,"value":2320}," UPPER",{"type":22,"tag":178,"props":2322,"children":2323},{"style":221},[2324],{"type":27,"value":2325},"(email) ",{"type":22,"tag":178,"props":2327,"children":2328},{"style":195},[2329],{"type":27,"value":2330},"=",{"type":22,"tag":178,"props":2332,"children":2333},{"style":1955},[2334],{"type":27,"value":2335}," 'TEST@TEST.COM'\n",{"type":22,"tag":178,"props":2337,"children":2338},{"class":180,"line":212},[2339],{"type":22,"tag":178,"props":2340,"children":2342},{"emptyLinePlaceholder":2341},true,[2343],{"type":27,"value":2344},"\n",{"type":22,"tag":178,"props":2346,"children":2347},{"class":180,"line":261},[2348],{"type":22,"tag":178,"props":2349,"children":2350},{"style":185},[2351],{"type":27,"value":2352},"-- DOĞRU: veriyi normalize et veya functional index oluştur\n",{"type":22,"tag":178,"props":2354,"children":2355},{"class":180,"line":304},[2356,2360,2365,2369],{"type":22,"tag":178,"props":2357,"children":2358},{"style":195},[2359],{"type":27,"value":1934},{"type":22,"tag":178,"props":2361,"children":2362},{"style":221},[2363],{"type":27,"value":2364}," email ",{"type":22,"tag":178,"props":2366,"children":2367},{"style":195},[2368],{"type":27,"value":2330},{"type":22,"tag":178,"props":2370,"children":2371},{"style":1955},[2372],{"type":27,"value":2373}," 'test@test.com'\n",{"type":22,"tag":167,"props":2375,"children":2377},{"code":2376,"language":170,"meta":7,"className":171,"style":7},"-- YANLIŞ: tip uyumsuzluğu (varchar kolona int karşılaştırma)\nWHERE musteri_kodu = 12345\n\n-- DOĞRU\nWHERE musteri_kodu = '12345'\n",[2378],{"type":22,"tag":174,"props":2379,"children":2380},{"__ignoreMap":7},[2381,2389,2410,2417,2425],{"type":22,"tag":178,"props":2382,"children":2383},{"class":180,"line":181},[2384],{"type":22,"tag":178,"props":2385,"children":2386},{"style":185},[2387],{"type":27,"value":2388},"-- YANLIŞ: tip uyumsuzluğu (varchar kolona int karşılaştırma)\n",{"type":22,"tag":178,"props":2390,"children":2391},{"class":180,"line":191},[2392,2396,2401,2405],{"type":22,"tag":178,"props":2393,"children":2394},{"style":195},[2395],{"type":27,"value":1934},{"type":22,"tag":178,"props":2397,"children":2398},{"style":221},[2399],{"type":27,"value":2400}," musteri_kodu ",{"type":22,"tag":178,"props":2402,"children":2403},{"style":195},[2404],{"type":27,"value":2330},{"type":22,"tag":178,"props":2406,"children":2407},{"style":206},[2408],{"type":27,"value":2409}," 12345\n",{"type":22,"tag":178,"props":2411,"children":2412},{"class":180,"line":212},[2413],{"type":22,"tag":178,"props":2414,"children":2415},{"emptyLinePlaceholder":2341},[2416],{"type":27,"value":2344},{"type":22,"tag":178,"props":2418,"children":2419},{"class":180,"line":261},[2420],{"type":22,"tag":178,"props":2421,"children":2422},{"style":185},[2423],{"type":27,"value":2424},"-- DOĞRU\n",{"type":22,"tag":178,"props":2426,"children":2427},{"class":180,"line":304},[2428,2432,2436,2440],{"type":22,"tag":178,"props":2429,"children":2430},{"style":195},[2431],{"type":27,"value":1934},{"type":22,"tag":178,"props":2433,"children":2434},{"style":221},[2435],{"type":27,"value":2400},{"type":22,"tag":178,"props":2437,"children":2438},{"style":195},[2439],{"type":27,"value":2330},{"type":22,"tag":178,"props":2441,"children":2442},{"style":1955},[2443],{"type":27,"value":2444}," '12345'\n",{"type":22,"tag":148,"props":2446,"children":2448},{"id":2447},"n1-ormin-sessiz-katili",[2449],{"type":27,"value":2450},"N+1: ORM'in Sessiz Katili",{"type":22,"tag":23,"props":2452,"children":2453},{},[2454],{"type":27,"value":2455},"ORM kullanan uygulamalarda çok yaygın. 1 sorgu yerine N+1 sorgu atılır:",{"type":22,"tag":167,"props":2457,"children":2459},{"code":2458},"-- Kötü (1000 sipariş varsa 1001 sorgu)\nSELECT * FROM siparisler;\n-- Sonra her satır için:\nSELECT * FROM musteriler WHERE id = ?;\n\n-- İyi (1 sorgu + JOIN veya eager loading)\nSELECT s.*, m.* FROM siparisler s\nJOIN musteriler m ON s.musteri_id = m.id;\n",[2460],{"type":22,"tag":174,"props":2461,"children":2462},{"__ignoreMap":7},[2463],{"type":27,"value":2458},{"type":22,"tag":138,"props":2465,"children":2466},{},[],{"type":22,"tag":35,"props":2468,"children":2470},{"id":2469},"hızlı-kontrol-listesi",[2471],{"type":27,"value":2472},"Hızlı Kontrol Listesi",{"type":22,"tag":23,"props":2474,"children":2475},{},[2476],{"type":27,"value":2477},"Bir yavaş sorguyla karşılaştığınızda ilk 10 dakika:",{"type":22,"tag":2479,"props":2480,"children":2481},"ol",{},[2482,2494,2507,2525,2530,2535,2540],{"type":22,"tag":67,"props":2483,"children":2484},{},[2485,2487,2492],{"type":27,"value":2486},"✅ Sorgu metnini al (",{"type":22,"tag":174,"props":2488,"children":2490},{"className":2489},[],[2491],{"type":27,"value":1578},{"type":27,"value":2493}," veya Query Store)",{"type":22,"tag":67,"props":2495,"children":2496},{},[2497,2499,2505],{"type":27,"value":2498},"✅ ",{"type":22,"tag":174,"props":2500,"children":2502},{"className":2501},[],[2503],{"type":27,"value":2504},"EXPLAIN ANALYZE",{"type":27,"value":2506}," \u002F Actual Execution Plan çalıştır",{"type":22,"tag":67,"props":2508,"children":2509},{},[2510,2511,2516,2518,2523],{"type":27,"value":2498},{"type":22,"tag":174,"props":2512,"children":2514},{"className":2513},[],[2515],{"type":27,"value":2017},{"type":27,"value":2517}," \u002F ",{"type":22,"tag":174,"props":2519,"children":2521},{"className":2520},[],[2522],{"type":27,"value":1094},{"type":27,"value":2524}," var mı?",{"type":22,"tag":67,"props":2526,"children":2527},{},[2528],{"type":27,"value":2529},"✅ Missing index önerisi var mı?",{"type":22,"tag":67,"props":2531,"children":2532},{},[2533],{"type":27,"value":2534},"✅ Satır tahmini gerçekten çok farklı mı? → istatistik güncelle",{"type":22,"tag":67,"props":2536,"children":2537},{},[2538],{"type":27,"value":2539},"✅ Aktif lock\u002Fblocking var mı?",{"type":22,"tag":67,"props":2541,"children":2542},{},[2543],{"type":27,"value":2544},"✅ ORM N+1 mi üretiyor?",{"type":22,"tag":138,"props":2546,"children":2547},{},[],{"type":22,"tag":23,"props":2549,"children":2550},{},[2551],{"type":27,"value":2552},"Yavaş sorgu analizi çoğu zaman tahmin değil, metodoloji işidir. Doğru araçlarla problemi gördüğünüzde çözüm genellikle birkaç dakika alır.",{"type":22,"tag":23,"props":2554,"children":2555},{},[2556,2558,2565],{"type":27,"value":2557},"Veritabanı performans sorunlarınız için ",{"type":22,"tag":2559,"props":2560,"children":2562},"a",{"href":2561},"\u002Filetisim",[2563],{"type":27,"value":2564},"teknik görüşme talep edebilirsiniz",{"type":27,"value":2566}," — MSSQL ve PostgreSQL ortamlarında yerinde inceleme yapıyoruz.",{"type":22,"tag":2568,"props":2569,"children":2570},"style",{},[2571],{"type":27,"value":2572},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":191,"depth":191,"links":2574},[2575,2576,2581,2586,2590],{"id":37,"depth":191,"text":40},{"id":143,"depth":191,"text":146,"children":2577},[2578,2579,2580],{"id":150,"depth":212,"text":153},{"id":1031,"depth":212,"text":1034},{"id":1168,"depth":212,"text":1171},{"id":1561,"depth":191,"text":1564,"children":2582},[2583,2584,2585],{"id":1567,"depth":212,"text":153},{"id":1827,"depth":212,"text":1830},{"id":2057,"depth":212,"text":2060},{"id":2284,"depth":191,"text":2287,"children":2587},[2588,2589],{"id":2290,"depth":212,"text":2293},{"id":2447,"depth":212,"text":2450},{"id":2469,"depth":191,"text":2472},"markdown","content:blog:mssql-postgresql-yavash-sorgu-tespit-cozum.md","content","blog\u002Fmssql-postgresql-yavash-sorgu-tespit-cozum.md","blog\u002Fmssql-postgresql-yavash-sorgu-tespit-cozum","md",1781618406787]