<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by helinodabas on Medium]]></title>
        <description><![CDATA[Stories by helinodabas on Medium]]></description>
        <link>https://medium.com/@helenodabas?source=rss-ff88364a52c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7uf5c8G3W4C7vxz__S0hGA@2x.jpeg</url>
            <title>Stories by helinodabas on Medium</title>
            <link>https://medium.com/@helenodabas?source=rss-ff88364a52c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 23:59:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@helenodabas/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Supervised Learning, Separation Problem, and Separability Problem: Key Concepts and Examples]]></title>
            <link>https://medium.com/@helenodabas/supervised-learning-separation-problem-and-separability-problem-key-concepts-and-examples-f7365d463d24?source=rss-ff88364a52c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7365d463d24</guid>
            <category><![CDATA[binary-tree]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[helinodabas]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 13:34:59 GMT</pubDate>
            <atom:updated>2025-03-07T13:34:59.934Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*UyEUoFflKPrmXoyMIJP8XQ.png" /></figure><p>Machine learning is a broad field that involves developing algorithms capable of learning from data. One of the most important subfields of machine learning is supervised learning, which provides solutions to many real-world problems. However, within supervised learning, concepts like separation problem and separability problem play a crucial role in determining the success of a model.</p><p>In this article, I will first introduce supervised learning, then explain separation and separability problems, highlighting their differences and significance in machine learning.</p><p>⸻</p><ol><li><strong>What is Supervised Learning?</strong></li></ol><p>Supervised learning is a machine learning approach in which an algorithm learns from labeled data to make future predictions. The model is trained using input-output pairs, allowing it to generalize and make predictions on new, unseen data.</p><p>For example, in an e-commerce platform, supervised learning can be used to predict future sales based on past sales data and influencing factors such as price, discounts, and customer reviews.</p><p>Supervised learning is broadly categorized into:</p><p>• <strong>Classification:</strong> Assigning data points to discrete categories (e.g., classifying emails as “spam” or “not spam”).</p><p>• <strong>Regression:</strong> Predicting continuous numerical values (e.g., estimating house prices based on features like size, location, and number of rooms).</p><p>For supervised learning to work effectively, the data should be separable, meaning different classes can be distinguished from each other. This is where separation problem and separability problem become important.</p><p>⸻</p><p>2.<strong> What is the Separation Problem?</strong></p><p>The separation problem arises when determining whether data points can be classified into distinct categories. If data points from different classes are clearly distinguishable, a classification model can easily separate them. However, if they are too close or interwoven, classification becomes difficult.</p><p><em>Example: The Separation Problem</em></p><p>Imagine a dataset with red and blue points.</p><p>•	If all red points are on one side and all blue points are on the other, the data is linearly separable, meaning a simple model like logistic regression can classify them.</p><p>•	However, if red and blue points are mixed randomly, drawing a linear decision boundary becomes impossible. This is the separation problem, where linear models (e.g., logistic regression or linear SVM) fail, requiring more advanced methods like deep learning or kernel-based SVM.</p><p>⸻</p><p>3. <strong>What is the Separability Problem?</strong></p><p>The separability problem is a broader concept that evaluates whether a dataset can be made separable under certain transformations. While the separation problem concerns the current state of the data, the separability problem focuses on what can be done to make the data separable.</p><p><em>Example: The Separability Problem</em></p><p>Some datasets are not linearly separable, but applying transformations can make them distinguishable.</p><p>•	Non-linearly separable data: Suppose data points from two classes are arranged in concentric circles (one class inside the circle, the other outside). A linear classifier cannot separate them.</p><p>•	Making the data separable: If we transform the data into a higher-dimensional space (e.g., using the distance from the center as a new feature), we can make it linearly separable.</p><p>The separability problem explores which transformations or methods can make a dataset easier to classify.</p><p>⸻</p><p>4. <strong>Key Differences Between Separation Problem and Separability Problem</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1AI2tI37imvym6C70Cj2Q.png" /></figure><p>⸻</p><p>5. <strong>Solutions to Separation and Separability Problems</strong></p><p>Several techniques can address separation and separability issues:</p><p><strong><em>1) Using More Powerful Models</em></strong></p><p>•	If the data is not linearly separable, non-linear models can help, such as:</p><p>•	Kernel-based SVM</p><p>•	Deep neural networks (DNN, CNN, RNN, etc.)</p><p>•	Complex decision trees (Random Forest, XGBoost, etc.)</p><p><strong><em>2) Feature Engineering (Data Transformation)</em></strong></p><p>•	Adding new features can enhance the model’s ability to distinguish classes.</p><p>•	Example: In text data, using TF-IDF or Word2Vec can improve classification performance.</p><p><strong><em>3) Representation Learning</em></strong></p><p>•	In complex data types (e.g., images, text, speech), extracting better feature representations improves separability.</p><p>•	Example: Convolutional Neural Networks (CNNs) extract more informative features from images.</p><p><strong><em>4) Applying Kernel Methods</em></strong></p><p>•	Kernel functions transform data into a higher-dimensional space where it may become linearly separable.</p><p>•	Example: Radial Basis Function (RBF) Kernel in SVM is commonly used for non-linearly separable data.</p><p>⸻</p><p><strong>Conclusion</strong></p><p>Supervised learning is one of the most widely used machine learning approaches. However, whether a dataset is separable significantly impacts the model’s performance. The separation problem addresses whether a dataset is currently separable, while the separability problem examines how a dataset can be transformed to become separable.</p><p>By using non-linear models, kernel methods, and feature engineering techniques, these problems can be addressed, leading to more robust and accurate machine learning models. Understanding these concepts is essential for improving classification tasks and developing better predictive models.</p><p>If you are interested in machine learning, experimenting with different approaches to solve these problems can help you build more effective models!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7365d463d24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Primitives That Belong to Multiple Nodes in Spatial Subdivision]]></title>
            <link>https://medium.com/@helenodabas/handling-primitives-that-belong-to-multiple-nodes-in-spatial-subdivision-1f731a183ed4?source=rss-ff88364a52c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f731a183ed4</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <dc:creator><![CDATA[helinodabas]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 10:54:45 GMT</pubDate>
            <atom:updated>2025-02-16T10:54:45.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*I6fMNCw6uv0xYNji6_hwRg.png" /></figure><p>Spatial subdivision techniques like <strong>KD-Trees, Octrees, Bounding Volume Hierarchies (BVH), and Uniform Grids</strong> are essential in computer graphics, game engines, and physics simulations. However, a common challenge arises when a <strong>primitive (e.g., triangle, object, or voxel) overlaps multiple spatial nodes</strong>. Handling this efficiently is critical for performance optimization, memory usage, and correctness.</p><p>We willexplore different strategies to handle primitives that belong to multiple nodes in spatial subdivision, their advantages and drawbacks, and real-world applications.</p><h3>Why Do Primitives Belong to Multiple Nodes?</h3><p>A primitive may span multiple spatial nodes due to:</p><ol><li><strong>Large Size:</strong> The object is larger than the cell or partition.</li><li><strong>Irregular Shape:</strong> Triangles or complex geometry intersect multiple divisions.</li><li><strong>Adaptive Subdivision:</strong> Some subdivision schemes create smaller cells dynamically, causing objects to straddle multiple boundaries.</li><li><strong>Floating Point Precision Issues:</strong> Small numerical differences may lead to objects being assigned to multiple nodes.</li></ol><p>To address this, two common strategies are used: <strong>Splitting the Primitive</strong> and <strong>Duplicating the Primitive</strong>.</p><h3>1. Splitting the Primitive</h3><h4>How It Works</h4><ul><li>When a primitive spans multiple nodes, it is <strong>divided into smaller parts</strong> along the subdivision boundaries.</li><li>Each <strong>sub-part is stored in the respective node</strong> that it fits within.</li><li>Often used in <strong>KD-Trees, BSP Trees, and BVH structures</strong>.</li></ul><h4>Advantages</h4><p>✅ <strong>Efficient Queries</strong> — Ray tracing, collision detection, and rendering operations only consider relevant sub-parts of the primitive.<br> ✅ <strong>Memory Efficient</strong> — Each node stores only the portion of the primitive necessary for its region.<br> ✅ <strong>Avoids Redundant Computation</strong> — Less overdraw and fewer duplicate checks.</p><h4>Disadvantages</h4><p>❌ <strong>Modifies Geometry</strong> — Can introduce artifacts or loss of accuracy in some cases.<br> ❌ <strong>Increased Preprocessing Cost</strong> — Splitting operations require extra computation.<br> ❌ <strong>Complex Data Management</strong> — Keeping track of split fragments increases implementation complexity.</p><h4>Use Cases</h4><ul><li><strong>Ray Tracing</strong>: KD-Trees split large polygons to ensure <strong>fast intersection tests</strong>.</li><li><strong>Hidden Surface Removal</strong>: BSP Trees split geometry for <strong>correct rendering order</strong>.</li><li><strong>Finite Element Simulations</strong>: Adaptive meshing techniques break down large elements into manageable pieces.</li></ul><h3>2. Duplicating the Primitive</h3><h4>How It Works</h4><ul><li>Instead of splitting, the primitive is <strong>fully stored in each node that it intersects</strong>.</li><li>Used in <strong>Bounding Volume Hierarchies (BVH) and Uniform Grid approaches</strong>.</li></ul><h4>Advantages</h4><p>✅ <strong>Preserves Original Geometry</strong> — No modifications to the object’s shape.<br> ✅ <strong>Faster Preprocessing</strong> — No need to compute splits, reducing setup time.<br> ✅ <strong>Simpler Implementation</strong> — Easier to track objects without fragmenting them.</p><h4>Disadvantages</h4><p>❌ <strong>Increased Memory Usage</strong> — The same primitive is stored in multiple locations.<br> ❌ <strong>Redundant Processing</strong> — The same object might be checked multiple times during queries.<br> ❌ <strong>Performance Bottlenecks</strong> — Too much duplication can slow down spatial queries.</p><h4>Use Cases</h4><ul><li><strong>Game Engines</strong>: Physics engines often duplicate objects in uniform grids for <strong>fast collision detection</strong>.</li><li><strong>GPU-Based Rendering</strong>: BVH structures duplicate objects across bounding boxes to <strong>speed up parallel processing</strong>.</li><li><strong>Voxel-Based Simulations</strong>: Objects spanning multiple voxels are duplicated to avoid artifacts.</li></ul><h3>Hybrid Approaches: Best of Both Worlds</h3><p>In real-world applications, a <strong>hybrid approach</strong> may be used:</p><ul><li><strong>Small Primitives Are Duplicated</strong>, while <strong>Large Primitives Are Split</strong>.</li><li><strong>Bounding Boxes Are Used</strong> for quick rejection before checking individual fragments.</li><li><strong>Threshold-Based Heuristics</strong> determine whether an object should be <strong>split or duplicated</strong> based on its size relative to the node.</li></ul><p>Example: <strong>Unreal Engine 5’s Nanite rendering system</strong> dynamically decides whether to split or duplicate assets to optimize rendering.</p><h3>Conclusion</h3><p>Efficient handling of primitives that belong to multiple nodes in spatial subdivision structures is crucial for performance optimization.</p><p>✅ <strong>Splitting the primitive</strong> is better for <strong>memory efficiency and optimized queries</strong> but requires <strong>preprocessing overhead</strong>.<br> ✅ <strong>Duplicating the primitive</strong> is simpler and <strong>preserves geometry</strong>, but it <strong>increases memory usage</strong>.<br> ✅ <strong>A hybrid approach</strong> balances both, allowing the best method based on object size and use case.</p><p>By understanding these techniques, developers can make informed choices in rendering, physics simulations, and spatial data structures to ensure optimal performance. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f731a183ed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ABAP ile ALV Grid Kullanımı ve Özelleştirme Teknikleri]]></title>
            <link>https://medium.com/@helenodabas/abap-ile-alv-grid-kullan%C4%B1m%C4%B1-ve-%C3%B6zelle%C5%9Ftirme-teknikleri-dbb9d053e583?source=rss-ff88364a52c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbb9d053e583</guid>
            <category><![CDATA[erp]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[helinodabas]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 07:06:18 GMT</pubDate>
            <atom:updated>2025-01-27T07:06:18.166Z</atom:updated>
            <content:encoded><![CDATA[<p>ABAP’ta raporlama, iş süreçlerinin vazgeçilmez bir parçasıdır. Kullanıcıların veriye hızlı bir şekilde erişmesini ve bu veriyi yönetmesini sağlamak için ALV (ABAP List Viewer) oldukça güçlü bir araçtır. Ancak, ALV’yi basit bir tablo gösteriminden daha fazlası haline getirmek için özelleştirme seçeneklerini kullanabilirsiniz. Bu yazıda, ALV Grid kullanımı ve özelleştirme tekniklerinden bahsedeceğim. Hem temel bir yapı kuracağız hem de işlevselliği artıracak ipuçları paylaşacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*TGPYMCSiMOhNPGMfsZw5dA.png" /></figure><p><strong>1. ALV Grid Nedir ve Avantajları Nelerdir?</strong></p><p>ALV, SAP’nin ABAP’ta veri tablolarını göstermek için sunduğu bir araçtır. Standart raporlara göre daha interaktif ve kullanıcı dostu bir deneyim sağlar.</p><p><strong>Avantajları:</strong><br> • Sıralama ve filtreleme: Kullanıcılar veriyi kolayca sıralayıp filtreleyebilir.<br> • Toplam ve alt toplamlar: Sayısal veriler için toplamlar otomatik olarak hesaplanabilir.<br> • Export seçenekleri: Veriyi Excel, Word veya PDF gibi formatlara aktarabilirsiniz.<br> • Özelleştirme: Görünüm ve fonksiyonlar kolayca kişiselleştirilebilir.</p><p><strong>2. Basit ALV Grid Kullanımı</strong></p><p>Başlangıç olarak, ALV Grid’in nasıl oluşturulduğunu bir örnekle gösterelim.</p><p><strong>Adım 1: Gerekli Program Tanımlamaları</strong></p><p>ALV Grid için öncelikle bazı standart sınıfları kullanmanız gerekir:</p><pre>DATA: gt_data TYPE TABLE OF mara, &quot;ALV&#39;ye gösterilecek veri <br>      gr_alv TYPE REF TO cl_gui_alv_grid, <br>      gr_container TYPE REF TO cl_gui_custom_container.</pre><p><strong>Adım 2: Veri Setini Hazırlayın</strong></p><p>Tablodan veriyi okuyup bir iç tabloya dolduralım:</p><pre>SELECT matnr, ersda, mtart, matkl <br>  FROM mara <br>  INTO TABLE @gt_data <br>  UP TO 100 ROWS.</pre><p><strong>Adım 3: Ekran Konteyneri ve ALV Nesnesini Oluşturun</strong></p><p>ALV’yi bir ekran konteyneri içinde gösterebilmek için aşağıdaki kodu kullanabilirsiniz:</p><pre>CREATE OBJECT gr_container <br> EXPORTING <br> container_name = &#39;CONTAINER&#39;.<br><br>CREATE OBJECT gr_alv <br> EXPORTING <br> i_parent = gr_container.</pre><p><strong>Adım 4: ALV’yi Çalıştırın</strong></p><p>Şimdi veriyi ALV Grid’e aktaralım:</p><pre>CALL METHOD gr_alv-&gt;set_table_for_first_display <br> EXPORTING <br> i_structure_name = &#39;MARA&#39; <br> CHANGING <br> it_outtab = gt_data.</pre><p>Bu kod ile basit bir ALV Grid ekranı oluşturmuş oldunuz.</p><p><strong>3. ALV Özelleştirme Teknikleri</strong></p><p>ALV Grid’i yalnızca veri göstermek için değil, aynı zamanda daha işlevsel hale getirmek için özelleştirebilirsiniz. İşte birkaç örnek:</p><p><strong>a) Kolon Başlıklarını Özelleştirme</strong></p><p>Kullanıcı dostu başlıklar oluşturmak için alan kataloğunu (field catalog) kullanabilirsiniz:</p><pre>DATA: lt_fieldcat TYPE lvc_t_fcat, <br>      ls_fieldcat TYPE lvc_s_fcat.<br><br>ls_fieldcat-fieldname = &#39;MATNR&#39;. <br>ls_fieldcat-seltext_m = &#39;Material No&#39;. <br>APPEND ls_fieldcat TO lt_fieldcat.<br><br>ls_fieldcat-fieldname = &#39;ERSDA&#39;. <br>ls_fieldcat-seltext_m = &#39;Created On&#39;. <br>APPEND ls_fieldcat TO lt_fieldcat.<br><br>CALL METHOD gr_alv-&gt;set_table_for_first_display <br> EXPORTING <br> is_layout = lt_fieldcat <br> CHANGING <br> it_outtab = gt_data.</pre><p><strong>b) Toplam ve Alt Toplamlar</strong></p><p>ALV Grid üzerinde toplam ve alt toplam hesaplamaları yapmak için layout yapısını kullanabilirsiniz:</p><pre>DATA: ls_layout TYPE lvc_s_layo.<br><br>ls_layout-totals_text = &#39;Total&#39;. <br>ls_layout-zebra = &#39;X&#39;. &quot;Zebra deseni için<br><br>CALL METHOD gr_alv-&gt;set_table_for_first_display <br> EXPORTING <br> is_layout = ls_layout <br> CHANGING <br> it_outtab = gt_data.</pre><p><strong>c) Olaylara (Events) Müdahale Etme</strong></p><p>Kullanıcı bir hücreye tıkladığında özel bir işlem gerçekleştirmek için olayları yakalayabilirsiniz:</p><pre>DATA: lt_events TYPE slis_t_event, <br> ls_event TYPE slis_alv_event.<br><br>ls_event-name = &#39;USER_COMMAND&#39;. <br>ls_event-form = &#39;HANDLE_COMMAND&#39;. &quot;Komutları işlemek için form <br>APPEND ls_event TO lt_events.<br><br>CALL METHOD gr_alv-&gt;set_table_for_first_display <br> EXPORTING <br> it_events = lt_events <br> CHANGING <br> it_outtab = gt_data.</pre><p><em>Form tanımlaması:</em></p><pre>FORM handle_command USING r_ucomm LIKE sy-ucomm. <br> CASE r_ucomm. <br> WHEN &#39;DETAIL&#39;. <br> MESSAGE &#39;Detail button clicked&#39; TYPE &#39;I&#39;. <br> ENDCASE. <br>ENDFORM.</pre><p><strong>d) Excel’e Export Etme</strong></p><p>ALV Grid’in yerleşik export özelliğini etkinleştirmek için ek bir işlem yapmanıza gerek yok. Kullanıcı bunu menüden yapabilir. Ancak özel export formatları için olaylara müdahale edebilirsiniz.</p><p><strong>4. Sonuç ve İpuçları</strong></p><p>ALV Grid, ABAP geliştiricileri için güçlü bir araçtır. Kullanıcı deneyimini geliştirmek ve interaktif bir raporlama çözümü sunmak için ALV Grid’i özelleştirebilir, filtreleme, sıralama ve toplam gibi özellikleri aktif hale getirebilirsiniz.</p><p><em>İpuçları:</em><br> 1. Kullanıcıların ihtiyacına göre filtreleme seçenekleri ekleyin.<br> 2. Zebra deseni veya renklendirme ile raporları görsel olarak çekici hale getirin.<br> 3. Büyük verilerle çalışırken veriyi bölerek getirin (pagination).<br> 4. Özelleştirilmiş olaylar ile dinamik kullanıcı deneyimi sağlayın.</p><p>Artık ALV Grid’i hem güçlü hem de kullanıcı dostu bir şekilde nasıl geliştirebileceğinizi biliyorsunuz. Kendi projelerinizde bu teknikleri kullanarak performansı artırabilir ve kullanıcılarınıza daha iyi çözümler sunabilirsiniz. Şimdiden kolay gelsin!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbb9d053e583" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ABAP’ta Performans Optimizasyonu: SELECT Sorgularını Doğru Kullanmanın Yolları]]></title>
            <link>https://medium.com/@helenodabas/abapta-performans-optimizasyonu-select-sorgular%C4%B1n%C4%B1-do%C4%9Fru-kullanman%C4%B1n-yollar%C4%B1-75518dcdb3bb?source=rss-ff88364a52c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/75518dcdb3bb</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[erp]]></category>
            <dc:creator><![CDATA[helinodabas]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 10:09:57 GMT</pubDate>
            <atom:updated>2025-01-13T11:29:58.327Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhabalar ABAP geliştiricileri ve ABAP geliştiricisi olmak isteyenler:</p><p>ABAP’ta performans optimizasyonu, genelde göz ardı edilen ama sistemi hızlı ve kullanıcı dostu hale getiren en önemli detaylardan biri. Özellikle SELECT sorguları… Hepimiz bir şekilde SELECT ile veriye erişiyoruz ama küçük dokunuşlarla çok daha hızlı ve etkili işler yapabiliriz.</p><p>Bu yazıda, basit bir şekilde SELECT sorgularını optimize etmenin püf noktalarını ve iyi uygulama örneklerini sizlerle paylaşacağım. Hadi başlayalım!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*TGPYMCSiMOhNPGMfsZw5dA.png" /></figure><ol><li><strong>Sadece İhtiyacınız Olanı Alın: Minimal Veri Getirme</strong></li></ol><p>Bu belki de en temel ama en etkili kural. SELECT sorgularında her zaman ihtiyaç duyduğunuz alanları çekmelisin. Tablonun tüm alanlarını almak, sistemi gereksiz yere yorar ve belleği doldurur.</p><p><em>Klasik Hata:</em></p><pre>SELECT * <br>FROM mara. <br>INTO TABLE @lt_mara.</pre><p>Eğer bu kodu yazdıysanız, hemen düzeltin :) Tablodaki tüm alanları alıyorsunuz ve muhtemelen çoğunu kullanmayacaksınız.</p><p><em>Daha Akıllıca Kullanım:</em></p><pre>SELECT matnr, matkl, meins. <br>FROM mara. <br>INTO TABLE @lt_mara.</pre><p>Bu şekilde, sadece işinize yarayacak alanları alır ve performansı artırırsınız.</p><p><strong>2. WHERE Şartını Unutmayın: Veriyi Sınırlamak Şart</strong></p><p>Tüm kayıtları belleğe çekmek, büyük tablolarla çalışırken tam bir felaket olabilir. WHERE şartlarıyla veriyi sınırlandırarak hem işlem süresini kısaltırsın hem de sistemi rahatlatırsınız.</p><p><em>Zayıf Yaklaşım:</em></p><pre>SELECT matnr, matkl, meins. <br>FROM mara. <br>INTO TABLE @lt_mara.</pre><p>Bu kod, hiçbir filtre koymadan tablodaki her şeyi getirir.</p><p><em>Daha İyi Yaklaşım:</em></p><pre>SELECT matnr, matkl, meins. <br>FROM mara. <br>INTO TABLE @lt_mara. <br>WHERE matkl = &#39;001&#39; <br>AND meins = &#39;KG&#39;.</pre><p>Sadece ihtiyacınız olan kayıtları çekerek daha hızlı sonuç alırsınız.</p><p><strong>3. FOR ALL ENTRIES ile Verimli Veri Çekme</strong></p><p>Bazen bir tabloda filtreleme yapmak için başka bir tabloya ihtiyaç duyarsın. İşte burada FOR ALL ENTRIES imdadına yetişiyor. Ama dikkat, boş tablolar FOR ALL ENTRIES’in çalışmamasına neden olabilir!</p><p><em>Yanlış Kullanım:</em></p><pre>LOOP AT lt_materials INTO DATA(ls_material). <br> SELECT matnr, maktx. <br> FROM makt. <br> INTO TABLE @lt_texts. <br> WHERE matnr = @ls_material-matnr. <br>ENDLOOP.</pre><p>Bu yöntem, her bir kayıt için sorgu çalıştırır ve performansı dibe çeker.</p><p><em>Doğru Kullanım:</em></p><pre>SELECT matnr, maktx. <br>FROM makt. <br>INTO TABLE @lt_texts. <br>FOR ALL ENTRIES IN @lt_materials. <br>WHERE matnr = @lt_materials-matnr.</pre><p>Tüm kayıtları tek bir sorguda almak hem veritabanını hem de uygulama katmanını rahatlatır.</p><p><strong>4. Sıralı Veri Getirin: UP TO Kullanımı</strong></p><p>Büyük tablolarla çalışırken tüm veriyi bir anda çekmek yerine, bölerek almak daha mantıklı olabilir. Bunun için UP TO kullanabilirsiniz.</p><p><em>Örnek:</em></p><pre>SELECT matnr, matkl. <br>FROM mara. <br>INTO TABLE @lt_mara. <br>UP TO 100 ROWS.</pre><p>Bu yöntem, sorgunun yalnızca ilk 100 satırı çekmesini sağlar ve bellek yükünü azaltır.</p><p><strong>5. JOIN Kullanarak Tablo Birleştirme</strong></p><p>Döngü içinde bir tabloyu diğer tabloyla eşleştirmek yerine JOIN kullanarak işi çok daha hızlı çözebilirsiniz.</p><p><em>Daha Verimli Kullanım:</em></p><pre>SELECT a~matnr, b~maktx. <br>FROM mara AS a. <br>INNER JOIN makt AS b. <br>ON a~matnr = b~matnr. <br>INTO TABLE @lt_data. <br>WHERE b~spras = &#39;E&#39;.</pre><p>Bu yöntem, döngü ve iç içe SELECT’lerden çok daha hızlıdır.</p><p>6. <strong>Veritabanını Kullanın: Aggregate Fonksiyonlar</strong></p><p>Eğer bir sayım, toplam veya ortalama alacaksanız, işi veritabanında halledin. Veriyi uygulamaya çekip işlemek yerine sorguda çözmek performansı ciddi şekilde artırır.</p><p><em>Örnek:</em></p><pre>SELECT COUNT(*) <br>FROM mara. <br>INTO @DATA(lv_count) <br>WHERE matkl = &#39;001&#39;.</pre><p>Bu şekilde, sadece ihtiyacınız olan sayıyı alır ve büyük tablolarla bile hızlı çalışırsınız.</p><p>7. <strong>INDEX Kontrolü Yapın</strong></p><p>Eğer SELECT sorgunuz yavaş çalışıyorsa, indeksler en iyi arkadaşınız olabilir. İlgili alanların bir primary key ya da secondary index ile desteklendiğinden emin olun.</p><h4>Sonuç</h4><p>SELECT sorgularını optimize etmek, sadece performansı artırmaz; aynı zamanda kodun daha temiz, sürdürülebilir ve profesyonel görünmesini sağlar. Küçük dokunuşlarla büyük farklar yaratmak elinizde!</p><p>Unutmayın, ABAP’ta her sorgunun bir hikayesi vardır. Peki sizin SELECT sorgularınız nasıl bir hikaye anlatıyor?</p><p>Bu konuda başka fikirleriniz varsa ya da kendi deneyimlerinizi paylaşmak isterseniz yorumlara yazabilirsiniz. Şimdiden kolay gelsin!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75518dcdb3bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>