<?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 Razin Abid on Medium]]></title>
        <description><![CDATA[Stories by Razin Abid on Medium]]></description>
        <link>https://medium.com/@razin223?source=rss-107cf4f194ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PQLvNtqjiSWv9Ffu</url>
            <title>Stories by Razin Abid on Medium</title>
            <link>https://medium.com/@razin223?source=rss-107cf4f194ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:25:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@razin223/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[Is GoPro Leaving Beginners Behind with the Mission 1?]]></title>
            <link>https://medium.com/@razin223/is-gopro-leaving-beginners-behind-with-the-mission-1-33bdc2a4a9fe?source=rss-107cf4f194ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/33bdc2a4a9fe</guid>
            <category><![CDATA[gopro]]></category>
            <category><![CDATA[action-camera]]></category>
            <category><![CDATA[cameras]]></category>
            <category><![CDATA[gopro-mission-1]]></category>
            <category><![CDATA[vlogging]]></category>
            <dc:creator><![CDATA[Razin Abid]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 11:19:43 GMT</pubDate>
            <atom:updated>2026-04-22T06:31:18.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*18I9NP35d_0Qhzvy7bMITw.png" /><figcaption>Credit: AI-generated.</figcaption></figure><p>GoPro is trying to redefine the action camera category. After their almost no success of Hero 13 and the downfall of their own company, they already announced the launch of a new camera series, the “Mission 1”, to regain their previous status. With this new action camera series, they have set a new standard and benchmark for the action camera market. As they once pioneered the action camera market, they are likely to set the standard for the best action camera.</p><h3><strong>A Spec Sheet That Changes the Game</strong></h3><p>Their 8K video, fully open-gate recording, interchangeable-lens system, 1-inch sensor, 5+ hours of recording time, 50MP image capture, and AI-powered neural processing capabilities make the “MISSION 1” camera lineup a killing action camera in the market. They are going to release it on May 28, 2026, and anyone can preorder it from May 21, 2026.</p><h3><strong>The Pricing Problem</strong></h3><p>But what about the pricing? Action cameras are popular among beginner or amateur creators and extreme sports hobbyists. And they have a very limited budget. They cannot have expensive cameras, lenses, or accessories.</p><p>As far as we can tell, GoPro announced the prices for its new lineup. The standard Mission 1 will be $599, while the Mission 1 Pro and Mission 1 Pro ILS will both be for $699 before tax. You can get a discount if you purchase the subscriptions, but that also adds to your money bag in the future. And all those prices are basic. For additional accessories, you will need to pay more. And for Mission 1 Pro ILS, you also must pay for the lens you’ll use. And I am not sure if those lenses’ autofocus will ever work. So, for sure, the Mission 1 Pro ILS will be used only by professionals.</p><h3><strong>Competition Is Cheaper — and Good Enough</strong></h3><p>On the other hand, the closest rival, DJI’s Osmo Action Pro 5 and Osmo Action 6, both retail for way less than this price. Osmo Action 5 Pro Adventure combo prices are currently $368, whereas Osmo Action 6 Enhanced combo prices are $496. And these 2 action cameras can capture 4K 120fps, which is good enough for beginners and amateurs.</p><p>Currently, the top brands offering 8K video are Insta360 and DJI, and their prices are lower than GoPro’s. This is a huge difference and a key decision maker for amateur and beginner content creators.</p><h3><strong>What Beginners Actually Want</strong></h3><p>As a beginner videographer or amateur content creator, like me, what do they do? They just put out their camera, press the recording button, and start shooting. After their shoot, they download the footage onto the computer, do some basic editing, or maybe not, and then straight upload it to the platform they prefer.</p><p>They know resolution and fps; very few have a concept of flat profiling and color grading, and almost none have any idea about open-gate recording, timecode, multiple-camera shooting, or synchronization. When they see an event they like or something interesting, they start recording and upload it as soon as possible, mostly unedited.</p><p>They prefer better performance in low light by default and very good slow-motion video, but have very little concept of manual focusing while shooting or open-gate recording for cropping for multiple platforms. And if they do, they do not care about missing a few missing pixels or less sharp footage.</p><p>For professionals, these are very important things, but not for amateur creators. Amateur creators&#39; preferences are entirely different. That’s where action cameras are shining. These cameras provide very good footage with a very basic setup change, or almost no change at all; default settings work very well in almost every condition.</p><p>The amateur content creators do not want pixel-perfect footage. They just want a good video, and with the current action camera lineup, you can upload it directly to the video platform without editing. The camera already does that for you.</p><p>When creators grow and earn from their content, they begin exploring advanced techniques such as flat profiles, color grading, manual focus, multi-camera setups, and open-gate shooting. These are exactly the areas where GoPro’s Mission 1 series is focusing.</p><p>And that’s why there is probably a chance that GoPro might not be popular among beginner or amateur content creators, but among professionals.</p><h3><strong>The Market Response and What’s Next</strong></h3><p>Given the price difference, features specifically designed toward professionals might be viewed differently by amateur and beginner content creators. They might want to stick with the current popular brands, such as DJI, Insta360, or Akaso. Those companies provide and listen to amateur content creators.</p><p>And I am waiting to see how DJI moves. There is a chance that DJI will release a new firmware update for its latest Osmo Action 6, which will enable 8K open-gate capture with its current 1/1.1-inch sensor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33bdc2a4a9fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GoPro Isn’t Dead: How the “Mission 1” Could Redefine Action Cameras in 2026]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@razin223/gopro-isnt-dead-how-the-mission-1-could-redefine-action-cameras-in-2026-b7331c71b414?source=rss-107cf4f194ae------2"><img src="https://cdn-images-1.medium.com/max/1600/1*OmKDfNu86quiNItQ1D5OFA.jpeg" width="1600"></a></p><p class="medium-feed-snippet">GoPro&#x2019;s Mission 1 may redefine action cameras with 8K video, open-gate recording, and interchangeable lenses. Is this its comeback?</p><p class="medium-feed-link"><a href="https://medium.com/@razin223/gopro-isnt-dead-how-the-mission-1-could-redefine-action-cameras-in-2026-b7331c71b414?source=rss-107cf4f194ae------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@razin223/gopro-isnt-dead-how-the-mission-1-could-redefine-action-cameras-in-2026-b7331c71b414?source=rss-107cf4f194ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7331c71b414</guid>
            <category><![CDATA[action-camera]]></category>
            <category><![CDATA[tech-innovation]]></category>
            <category><![CDATA[1mission]]></category>
            <category><![CDATA[camera-gear]]></category>
            <category><![CDATA[gopro]]></category>
            <dc:creator><![CDATA[Razin Abid]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 10:14:41 GMT</pubDate>
            <atom:updated>2026-04-15T10:14:41.420Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Youtube Channel Shadow Ban and Recovery]]></title>
            <link>https://medium.com/@razin223/youtube-channel-shadow-ban-and-recovery-60ec6e862a37?source=rss-107cf4f194ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/60ec6e862a37</guid>
            <category><![CDATA[shadow-banning]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[youtube-shadow-ban]]></category>
            <category><![CDATA[youtube-content-creators]]></category>
            <dc:creator><![CDATA[Razin Abid]]></dc:creator>
            <pubDate>Sun, 25 May 2025 13:18:58 GMT</pubDate>
            <atom:updated>2025-05-25T13:18:58.950Z</atom:updated>
            <content:encoded><![CDATA[<p>Some days ago, Youtube shadow banned my channel. And after 48 hours, I recovered from that ban. I am explaining what I did to get the ban and how I overcame that.</p><p>I am a new content creator learning video editing in Adobe Premier Pro. I know, if you have no project, you cannot learn good staff. So I started editing videos and posting in youtube shorts in my channel. Over time, the channel got more views and I posted more and more. As a new content creator, I lack a lot of knowledge. As a result, I got shadow banned.</p><p>I made shorts. Initially those shorts usually gets 1000 to 2000, 3000 at max views in total. Then I saw a video in youtube, in the video it is explained why I should be consistent with video topic. So I picked a topic and started posting shorts about that topic. As a result, the views increased. First 5000–10,000 views per video in total. Then more and more. I had 3 shorts which was giving me around 1000–2000 views per hour. I was so excited. I was getting 50,000–75,000 views and 5–10 subscribers every day. Then I uploaded a short which is 1:04 minute. Most of my shorts were 30–40 seconds, 50 seconds at max. This one was over 1 minute. Initially it had 300 views in 2 days, almost 50 likes and audience retention was 90% and engaged view was almost 70%. I checked google, and it indicates that this video should have huge views, still I was getting 100–200 views everyday. <strong>And after 4 days, I got impatient.</strong></p><p>I searched the issue and understood that, as this video was more than 1 minute, so it was not going in short feed. So I edited the video in Youtube editor, made it 56 seconds, re-released it. Still it is getting 100 views everyday. After 20–30 hours later, I edited that video in my PC, made it 48 seconds, made old video private, upload new one, delete old one after 20–30 minutes. After 3 hours, the new video breaks all the records of views. It got 3000 views in one hour, almost 150 likes and 70% engaged views. It was 1AM, so after seeing the view record, I went to sleep. And when I wake up, disaster broke down.</p><p>At that time, I got around 3000–4000 views per hour from various other shorts. In the next morning, when I wake up, the last video got around 4000 views, then all views stopped. I got around 5–10 views every hour from then. All shorts stopped getting views from any source. So I panicked. <strong>I understand that, my channel got shadow banned.</strong></p><p><a href="http://youtube.com/post/UgkxO-uwPE7r0-kVuCE5NJeQoG_G0ynlhUPP?si=cd0lYzjLnKnyrKVE">http://youtube.com/post/UgkxO-uwPE7r0-kVuCE5NJeQoG_G0ynlhUPP?si=cd0lYzjLnKnyrKVE</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*Ret7Kvy036UDYztSF4P_jg.png" /></figure><p>Then I searched what was the issue. So far I understand that, re-upload previously uploaded video and delete old video could be the cause of getting shadow banned. Then I searched how to overcome this shadow ban. No one has a clue how to overcome this situation, everyone just said, I have to wait. Even no one knows for how long. It could be 48 hours, 1 week, 2 weeks or even month or months. Depending on the cause of shadow ban and frequency of occurrence, the length varies. You cannot appeal it, you cannot contact with anyone. It is imposed automatically by software and removed by software automatically.</p><p>Within this time, its more than 24 hours, around 30 hours passed. So I thought, what I was doing. I was making shorts and uploading to Youtube. So I started doing so. I uploaded the next video around 42 hours after got shadow ban. Initially it got almost no views. <strong>But after 48 hours, I started getting views.</strong> The interesting fact is, the old shorts which were giving me 3000–4000 views every hour, they completely stopped getting any views, zero views in total after ban lifted. They did not revived to get new view anymore. I tried every way, no change. Just some minor views, 30–40 views every 48 hours.</p><p><a href="http://youtube.com/post/UgkxIBtBB7OZYj77-r2qlfnzmNX6g66GI0Jo?si=UxW1-g_-x-YCrpyE">Post from Razin Abid</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*-5FmKjxa8k3ZkDpqoeQc2w.png" /></figure><p>So I started making short videos and uploaded to Youtube channel again. Within 3–4 days, I regained the old status, 3000–4000 views every hour. Interestingly 5th or 6th short I uploaded after shadow ban, it got viral. It got 900K views till today (around within 20 days) and still getting 1000–3000 views every hour.</p><p>So from that part of the experience, what I learnt is that:</p><p>1. No matter what, do not upload same video again. Youtube keeps a record of every video you upload like fingerprint in database. So if you upload same video again, they will know and shadow ban you.</p><p>2. If somehow you face shadow ban, wait 30–40 hours, then upload new videos. If shadow ban stopped, you need new video to get view. Old videos will not get view again after shadow ban.</p><p>3. No matter what, do not lose your hope. Do what you do best. And continue your journey.</p><p>Let me know if you face any issue like that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60ec6e862a37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[আপগ্রেড Laravel 5.7 টু Laravel 7, সমস‌্যা ও সমাধান]]></title>
            <link>https://medium.com/@razin223/%E0%A6%86%E0%A6%AA%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A7%87%E0%A6%A1-laravel-5-7-%E0%A6%9F%E0%A7%81-laravel-7-%E0%A6%B8%E0%A6%AE%E0%A6%B8-%E0%A7%8D%E0%A6%AF%E0%A6%BE-%E0%A6%93-%E0%A6%B8%E0%A6%AE%E0%A6%BE%E0%A6%A7%E0%A6%BE%E0%A6%A8-d607e1c29df0?source=rss-107cf4f194ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/d607e1c29df0</guid>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel-7]]></category>
            <category><![CDATA[laravel-5]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Razin Abid]]></dc:creator>
            <pubDate>Tue, 13 Jul 2021 05:39:05 GMT</pubDate>
            <atom:updated>2021-07-13T05:39:29.449Z</atom:updated>
            <content:encoded><![CDATA[<p>আজকে একটা Laravel 5.7 প্রোজেক্টকে Laravel 7 এ আপগ্রেড করতে গিয়ে অদ্ভুত কিছু জিনিসের সম্মুখিন হলাম।</p><p>১. এক বারে আপগ্রেড এ Jump করতে গেলে ( Laravel 5.7 to Laravel 7) যেসব Error আসে তা বোঝা কঠিন। যত সার্চ দিছি, সবাই ই বলছিল যে এক এক স্টেপ করে আপডেট দিতে, শর্টকাট মারতে গিয়ে ধরা খেয়ে আবার গোড়া থেকে শুরু করছি এক এক স্টেপ করে (5.7 to 5.8, 5.8 to 6, 6 to 7)।</p><p>২. লারাভেল এর ওয়েবসাইটে বলা নাই কিভাবে আপগ্রেড করতে হবে। বলা আছে, কি কি জিনিস composer.json এ থাকা লাগবে। কিন্তু সেগুলো থাকার পর কি করতে হবে, সেটা বলা নাই। সেটা অন‌্য জায়গায় খুজে পাইছি, composer update চালাইতে হবে। মজা হচ্ছে আমার এই কমান্ডের চেয়ে composer install চালানো লাগছে বেশি।</p><p>৩। Laravel 5.7 থেকে 5.8 এ যেতে তেমন কোন সমস‌্যা হয় না, Laravel ওয়েবসাইটে composer.json এ যেসব থাকতে হবে বলছে, তা থাকলেই চলবে। এরপর সবচেয়ে বেস্ট হল, composer.lock আর vendor ফোল্ডারটা ডিলিট করে composer install চালায় দিলে সব প‌্যাকেজ আবার install হয়ে যাবে।</p><p>৪। Laravel 5.8 থেকে Laravel 6 এ যেতে একটা সমস‌্যা আছে, যেটা লারাভেল ওয়েবসাইটে নাই। সেটা হল kylekatarnls/update-helper প‌্যাকেজটা composer.json এ নাই এবং Laravel 5.8 এ ও নাই। এইটা বের করতে আমার বেশ কিছু সময় লেগেছে। যাই হোক, সমাধান হল আগের মতই প্রায়, একটু ডিফারেন্ট ভাবে করছি। সাধারণ নিয়ম হল composer.json এ এই প‌্যাকেজটা add করে composer update কল করলেই হত। কিন্তু আমি ঘরপোড়া গরু। তাই আগের বারের মত vendor ফোল্ডার আর composer.lock ডিলিট করে composer require kylekatarnls/update-helper চালায়ে দিছি। আর সব কিছু এইটার সাথে install হয়ে গেছে।</p><p>৫। Laravel 6 থেকে Laravel 7 এ যেতে ২টা সমস‌্যা আছে। composer.json এ required প‌্যাকেজ add করলেও composer update কল করি আর vendor ফোল্ডার আর composer.lock ডিলিট করে composer install চালাই, লাভ হয় না। প্রথম সমস‌্যা হল bootstrap/cache ফোল্ডার এ services.php এ কিছু কোড আছে যা, Laravel 7 কম্পাটিবল না (সম্ভবত Laravel 5.7 আর Laravel 7 এর কোড আলাদা এই ফাইল এর জন‌্য)। সাজেশন দেখলাম যে, এই ফোল্ডার এর সব php ফাইল ডিলিট করে দিতে, তাতে সমস‌্যা নাই, install বা update কল করলে আবার জেনারেট হয়ে যায় এখানকার ফাইলগুলো। দ্বিতীয় সমস‌্যা হল app/Exceptions/Handler.php ফাইলে। এটি Definitely Laravel 5.7 আর Laravel 7 এর জন‌্য আলাদা এবং ইনকম্পাটিবল। এই ফাইলটা ওপেন করে https://github.com/laravel/laravel/blob/master/app/Exceptions/Handler.php এখানে যে কোড আছে, তা হুবহু কপি-পেস্ট করে দিছি। তারপর আগের মত vendor ফোল্ডার আর composer.lock ডিলিট করে composer install চালায় দিছি। ব‌্যস হয়ে গেছে। এরপর একটা ৫মিলিয়ন রো এর ডাটাবেজ কমান্ড লাইনে ইমপোর্ট করছি MySQL ডাটাবেজ এ (এইটা কিছুদিন আগে ৪৩ মিলিয়ন+ ছিল, পরে একটা টেবিল এর সব ডাটা ফেলে দিছি (ট্রাকিং লগ, সো ফেলে দিলে খুব সমস‌্যা হবে না হিসেবে ফেলে দিছি, তারপর মাত্র ১ মাসে আরো ২.৫ মিলিয়ন জমছে)। এখন প্রোজেক্ট Laravel 7 এ চলছে স্মুথভাবে।<br><br>** এই সব Experiment করার আগে অবশ‌্যই প্রোডাক্টশন এর চলমান ভার্সনটা ব‌্যাকআপ করে নিবেন। যদি কোন কারণে কোন সমস‌্যা হয়, তবে আগেরটা রিস্টোর করে নিলেই হবে আবার। আর অবশ‌্যই এসব লোকালে ব‌্যাকআপ নিয়ে লোকালে করা বেটার। এই Experiment করতে গিয়ে কেউ যদি ব‌্যাকআপ করতে ভুলে যায় আর মেইন প্রোজেক্টে গ‌্যান্জাম লাগায় তো আমি দায়ী না।</p><h3>“Don&#39;t try this at SERVER”.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d607e1c29df0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MySQL Performance এর কিছু সাধারণ সমস‌্যা ও সমাধান (বেশি ডাটা এর জন‌্য প্রযোজ‌্য। কমপক্ষে ৫-৬মিলিয়ন…]]></title>
            <link>https://medium.com/@razin223/mysql-performance-%E0%A6%8F%E0%A6%B0-%E0%A6%95%E0%A6%BF%E0%A6%9B%E0%A7%81-%E0%A6%B8%E0%A6%BE%E0%A6%A7%E0%A6%BE%E0%A6%B0%E0%A6%A3-%E0%A6%B8%E0%A6%AE%E0%A6%B8-%E0%A7%8D%E0%A6%AF%E0%A6%BE-%E0%A6%93-%E0%A6%B8%E0%A6%AE%E0%A6%BE%E0%A6%A7%E0%A6%BE%E0%A6%A8-%E0%A6%AC%E0%A7%87%E0%A6%B6%E0%A6%BF-%E0%A6%A1%E0%A6%BE%E0%A6%9F%E0%A6%BE-%E0%A6%8F%E0%A6%B0-%E0%A6%9C%E0%A6%A8-%E0%A7%8D%E0%A6%AF-%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%AF%E0%A7%8B%E0%A6%9C-%E0%A7%8D%E0%A6%AF-%E0%A6%95%E0%A6%AE%E0%A6%AA%E0%A6%95%E0%A7%8D%E0%A6%B7%E0%A7%87-%E0%A7%AB-%E0%A7%AC%E0%A6%AE%E0%A6%BF%E0%A6%B2%E0%A6%BF%E0%A7%9F%E0%A6%A8-edcef6bb49ad?source=rss-107cf4f194ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/edcef6bb49ad</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[mysql-performance]]></category>
            <category><![CDATA[mysql-server]]></category>
            <dc:creator><![CDATA[Razin Abid]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 23:16:01 GMT</pubDate>
            <atom:updated>2020-10-20T23:32:48.686Z</atom:updated>
            <content:encoded><![CDATA[<h3>MySQL Performance এর কিছু সাধারণ সমস‌্যা ও সমাধান (বেশি ডাটা এর জন‌্য প্রযোজ‌্য। কমপক্ষে ৫-৬মিলিয়ন বা এর বেশি)।</h3><p>আমার একটা প্রজেক্টে প্রায় ১০৪টা টেবিল আছে, ডাটা আছে প্রায় ৬মিলিয়ন। এই প্রজেক্ট নিয়ে আমি ২বছর প্রচুর কথা শুনেছি। সলুশন খুবই স্লো। কিছু রিপোর্টে মাঝে মাঝেই টাইম আউট আসে। বিশেষ করে ৪টা রিপোর্ট আছে যে রিপোর্ট গুলো জেনারেট করতে প্রায় ২০-২৫টা টেবিল রিলেশন করতে হয় এবং আরো কিছু টেবিলের ডাটা আলাদা ক‌্যালকুলেট করে এর সাথে মার্জ করে দেখাতে হয়। ডাটা থাকে কমপক্ষে ১,০০০-১২,০০০ রো, মাঝে মাঝে ২৩,০০০ পর্যন্ত। পেজিনেশন ব‌্যবহার করেছি কিন্তু যাদের প্রোজেক্ট তাদের দাবি সব ডাটা এক বারে দেখাতে হবে। কারণ তাদের লোকাল সার্ভার। সো পার্ফমেন্স খুব সমস‌্যা হবার কথা না। ৩২জিবি র‌্যাম, ৮কোর প্রসেসর ২.২গিগাহার্জ । ২টা লো গ্রেড জিনিস, হার্ডডিক্স HDD, আর সার্ভার খুব পুরাতন Dell R720, ১২ বছর আগে কেনা। অপারেটিং সিস্টেম উইন্ডোস সার্ভার ২০১২। লোকাল নেটওয়ার্কে যা রিসোর্স আছে তাতে সমস‌্যা হওয়া উচিৎ না। কিন্তু মজা হল কোন কারণে ডাটা ২০০ এর বেশি দেখাতে গেলে টাইম-আউট খায়। ৫০রো ডাটা দেখাতে প্রায় ৪০-৫০সেকেন্ড টাইম লাগে। আগে আরো বেশি লাগত কারণ আমাদের এক ডেভেলপার সকল ডাটাবেজ রিলেশন ফেলে দিছিল। এই প্রোজেক্ট আগে অন‌্য কোম্পানি করেছিল। তাদের অনেক ফিচার ছিল না, তাই নতুন করে আমরা করেছি। আগের কোম্পানির করা সলুশন এ ২১৮টা টেবিল ছিল এবং কোন রিলেশন ছিল না। ফলে ডাটা ইন্টিগ্রিটি ছিল না। প‌্যারেন্ট ডাটা ডিলিট করা হয়েছে কিন্তু চাইল্ড ডাটা থেকে গেছে। আমরা নতুন ডিজাইন করে ১০৪টা টেবিল করি। তখন আগের ডাটাবেজ থেকে ডাটা মাইগ্রেশন করা হয়েছিল। কিন্তু প‌্যারেন্ট ছাড়া চাইল্ড ডাটা মাইগ্রেশন এ এরর আসতেছিল। তাই ডেভলপার সব রিলেশন ফেলে দিয়ে ছিল ডাটা মাইগ্রেশন এর জন‌্য। তখন রিলেশন এর অভাবে প্রায় কাজই করতেছিল না প্রোজেক্ট। পরে খুজে দেখা গেল রিলেশন একটাও নাই। পরে রিলেশন ইন্ডেক্স যোগ করা হয় আবার এবং বেওয়ারিশ ডাটা ফেলে দেওয়া হয়। রিলেশন করার পরে পার্ফমেন্স ৪০-৫০সেকেন্ড! কিন্তু আমাদের VPS সার্ভারে আবার পার্ফমেন্স ঠিক আছে। সবোর্চ ৪-৬সেকেন্ড লাগে। তো আমি দোষ দিতাম HDD এর উপর, কারণ আমাদের VPS আর তাদের সার্ভারের মধ‌্যে একমাত্র পার্থক‌্য হল আমাদের স্টোরেজ SSD (NVMe), আর তাদের HDD। তাই আমি বারবার বলছি যে তাদের সার্ভার চেন্জ করে SSD স্টোরেজ সার্ভার বসাইতে। যেদিন ফাইনাল ডেলিভারি দিব সলুশন এর, সেদিন নতুন একটা টেবিল লেফট জয়েন করা হয়েছিল একটা রিপোর্টে। ফলাফল পেজিনেশন ৫০ দিয়েও কিছুই আসছিল না। টাইম আউট বাড়ানো হল, ৩০০ সেকেন্ড। লাভ নাই। ইন্টারনাল সার্ভার এরর। মাথা খারাপ হবার যোগাড়। এইটা চেক করি, সেইটা চেক করি আর বসে বসে সার্ভার রে গালাগালি করি। কারণ প্রোজেক্ট আমাদের সার্ভারে সুন্দর চলতেছে। তাদের সার্ভারে গেলেই সব সমস‌্যা। কি যেন মনে করে আমি MySQL এর মেমোরি চেক করলাম। এবং মাথায় হাত দিয়ে বসে পড়লাম। মাত্র ৮এমবি। কি একটা অবস্থা। সো মেমোরি বাড়াতে হবে। এবার পড়লাম অন‌্য সমস‌্যায়। MySQL এর ফোল্ডারে কোন কনফিগারেশন ফাইল খুজে পাই না। অনেক নেটে সার্চ করলাম কিন্তু কোথায় থাকে তা পাই না। পুরা ড্রাইভ ধরে সার্চ দিলাম, যা তাই। প্রায় ১ঘন্টা পর একটা স্টাকওভারফ্লোর সলুশন এ পাইলাম যে C ড্রাইভে একটা হিডেন ফোল্ডার আছে, যেটা সরাসরি অ‌্যাড্রেসবার এ টাইপ করে ঢুকতে হয়, হিডেন Show বা Show সিস্টেম ফোল্ডার দিলেও কাজ করে না। ফোল্ডারটার নাম ভুলে গেছি। যাই হোক, ঐখান থেকে মেমোরি ১জিবি করে দিয়ে সার্ভিস রিস্টার্ট দিলাম। আর ওয়ালা! যেই রিপোর্ট আসতে ৪০-৫০ সেকেন্ড লাগত সেটা আসতে এখন মাত্র ২সেকেন্ড লাগে। পরে মনে পড়ল আমাদের VPS এ আমি আগে কোন এক সময় MySQL এর মেমোরি ২জিবি করে রাখছিলাম। তাই আমাদের সার্ভারে সমস‌্যা হয় না, কিন্তু ওদের সার্ভারে হত কারণ ওদের মেমোরি মাত্র ৮এমবি ছিল যেটা দিয়ে যে কিভাবে রিপোর্ট গুলো আগে দেখাত আল্লামাবুদ। এখন প্রোজেক্ট সুন্দর চলতেছে। কোন স্লো কমপ্লেন নাই। নেক্সট বাগ ফিক্স এর সময় গিয়ে মেমোরি ৪-৫জিবি করে দিয়ে আসব সেই রকম ই প্লান।</p><p>অন‌্য একটি প্রজেক্টে GPS ডাটা নিয়ে কাজ করতে হয়। একটা টেবিল এ প্রায় ২৩মিলিয়ন ডাটা আছে। ল‌্যাটিচুড ও লংগিচুড টাইম অনুসারে। সব রিলেশন ইনডেক্স ঠিক আছে। আমাকে যত গুলো ভেয়িকেল আছে, তারা আজকে এখন পর্যন্ত কতদুর চলেছে এবং পুরা লাইফটাইমে কত দুর চলেছে তা দেখাতে হবে। পুরা লাইফটাইমের জন‌্য অন‌্য একটা সিস্টেম করা আছে। ঐ ডাটা ১০-১২ মিলি সেকেন্ডে পাওয়া যায়। সমস‌্যা আজকে এই মুহুর্ত পর্যন্ত কত দুর চলেছে সেটা বের করা। প্রতিদিন প্রতি ভেয়িকেলের জন‌্য প্রায় ১৫০০ ডাটা সেভ হয়। এই ১৫০০ ল‌্যাট-লং পয়েন্ট একটা থেকে পরেরটার দুরত্ব কত তা বের করে যোগ করে করে মোট কতদুর চলেছে বের করতে হয়। প্রতি পেজে যদি ৫০টা ভেয়িকেল ও দেখাই তাও মিনিমাম ৫০x১৪৯৯ টা ক‌্যালকুলেশন। ল‌্যাট-লং থেকে দুরত্ব বের করার কোডের কমপ্লেক্সিটি যদি কনসিডার নাও করি, তার পর ও মেলা ক‌্যালকুলেশন। প্রতিভেয়িকেলের ডাটা বের কর, যোগ কর, মোট বের কর, তারপর দেখাও। প্রথম দিকে প্রতি পেজে ৫০ভেয়িকেল হলেও ডাটা দেখাচ্ছিল। কিছুদিন পর ইন্টারনাল সার্ভার এরর দেওয়া শুরু করল। তখন পেজিনেশন কমায়ে ৩০ করলাম। দেখলাম কাজ করে, কিন্তু সময় লাগে প্রায় ৫০-৮০ সেকেন্ড। মনে করলাম যেহেতু অনেক ক‌্যালকুলেশন, তাই সম্ভবত এত সময় লাগছে। ক্লায়েন্ট জানতে চাইলে তাই বললাম। উনি জানতে চাইলেন, সলুশন কি। আমি তাকে বেশি পার্ফমেন্স এর সার্ভার নিতে বললাম যার কোর স্পিড কমপক্ষে ৩গিগাহার্জ, কারণ তার সার্ভার VPS, ১কোর ২গিগাহার্জ, ৪জিবি র‌্যাম। সে বলল পরে নিবে, আপাতত তো চলছে। আমি ও তাই মত দিলাম। তখন ডাটা ছিল সম্ভবত ৪-৫মিলিয়ন। এর পর হটাৎ করে তার ডাটা খুব বেড়ে গেল। পার্ফমেন্স এ আবার সমস‌্যা দেখা গেল। কখনো লোড হয়, কখনো এরর ৫০০, ইন্টারনাল সার্ভার এরর। আমি আবার তাকে সার্ভার চেন্জ করতে বললাম, সে বলল পরে। আপাতত কাজ চালায়ে নাও। একবারে বড় সার্ভার নিব ডিসেম্বর এ। আমি পেজিনেশন আরও কমায়ে ১৫ করলাম। এরপর ১ম প্রোজেক্ট এর স্পিড সমস‌্যা সমাধান করলাম। মনে হল এই সার্ভারে ও কি একই সমস‌্যা (ডাক্তার নতুন জিনিস শিখলে সব একই টাইপের সমস‌্যায় সেই সমাধান চেষ্টা করে দেখে প্রথমে, আর আমরা তো আরো বেশি)? ব‌্যাস, সেটিং চেক করে দেখলাম হ‌্যা তাই মাত্র ৮এমবি। চেন্জ করলাম, র‌্যাম দিলাম ১জিবি (উনার মোট র‌্যাম ৪জিবি, তার মধ‌্য অপারেটিং সিস্টেম Ubuntu-18 প্রায় ১জিবি খেয়ে দিছে)। সার্ভিস রিস্টার্ট দিলাম, আবার চেক করলাম। কোন উন্নতি তো হয়ই নাই, উল্টা পেজ এখন আর কখোনোই আসতেছে না। মাথা খারাপ অবস্থা। সেটিং আগের জায়গায় নিয়ে গেলাম। লাউ-কদু। কি মরা। ২দিন ধরে কোন রিপোর্ট দেখা যায় না। পরে কতটুকু গেছে তা দেখানো বন্ধ করে দিলাম। কিন্তু রিকুয়ারমেন্ট তো পুরণ করতে হবে। কি করা যায়। কোড দেখি, কমানোর কোন জায়গা খুজে পাই না, যে ক‌্যালকুলেশন কমবে। কুয়েরি সবথেকে অপটিমাইজ অবস্থায় আছে। এর থেকে আর কমানো যায় না। কোড পার্ফমেন্স চেক করা শুরু করলাম। দেখলাম যেটা আমি মনে করতেছিলাম যে ১৫০০ডাটা থেকে দুরত্ব বের করার পার্ট অনেক সময় নেয়, আসলে সেটা মাত্র ০.০৩ সেকেন্ড নিচ্ছে। মোট দুরত্ব বের করা মাত্র ০.০০৭ সেকেন্ড নিচ্ছে। সময় নিচ্ছে ঐ ১৫০০ডাটা ডাটাবেজ থেকে পড়ে আনতে। প্রায় ১১সেকেন্ড প্রতি ভেয়িকেলের জন‌্য। তখন ডাটাবেজ এ শুধু ঐ টেবিল এ ২৩মিলিয়ন ডাটা।ভেয়িকেল আইডি দিয়ে ইন্ডেক্স করা। সো পার্ফমেন্স খারাপ হবার কোন কারণ নাই। তারপর পড়ালেখা শুরু করলাম যে কি করা যায়। সার্চ করে দেখলাম যে, MySQL এর একটি টেবিল এ ২০০-৩০০মিলিয়ন ডাটা কোন ব‌্যাপার না। মিলিসেকেন্ড পার্ফমেন্স থাকার কথা। সেখানে ১১সেকেন্ড! কুয়েরি চেক করলাম, দেখলাম ২টা প‌্যারামিটার দিয়ে সার্চ হয়। এক হল ভেয়িকেল আইডি, অন‌্যটি হল ডাটা ইনসার্ট ডেটটাইম বা এই ডাটা আজকের কিনা তাই। কি করা যায় চিন্তা করতে করতে কি মনে করে ডেটটাইম ফিল্ডটা ইনডেক্স করতে দিলাম। প্রায় ১মিনিট এর ও বেশি লাগল। এরপর আবার কুয়েরি পার্ফমেন্স চেক করলাম। মাত্র ০.০০৩ সেকেন্ড!!!! জীবনে আইডি ছাড়া অন‌্য কোন ফিল্ড ইনডেক্স করি নাই। এই প্রথমবার ডেটটাইম ফিল্ড ইনডেক্স করলাম, তাও কি মনে করে ঠিক মনে নাই। এবার সব কোড আগের অবস্থায় নিয়ে গেলাম মানে সব দেখাবে দুরত্ব সহ। পেজিনেশন উঠায়ে দিলাম। কোন সমস‌্যাই নাই। সর্বোচ্চ ১২-১৫ সেকেন্ড লাগতেছে সব ভেয়িকেলের ডাটা আসতে। ক্লায়েন্ট খুব খুশি। তার দামী সার্ভারে যাওয়া লাগবে না ডিসেম্বর এ।</p><p>এই ২টা প্রোজেক্ট থেকে ২টা জিনিস শিখছি। এক হল ডাটা বেশি এবং রিপোর্ট বড় মানে অনেক টেবিল নিয়ে কুয়েরি করতে হলে অবশ‌্যই MySQL এর মেমোরি বেশি থাকতে হবে, কমপক্ষে ১জিবি। আর দুই হল যদি মিলিয়ন মিলিয়ন ডাটা থেকে কোন ডাটা সার্চ করা লাগে, তবে যে যে কলাম দিয়ে সার্চ করব, সেই সেই কলাম ইনডেক্স করে নিব। প্রথম প্রোজেক্টে ২নং কাজ টা করা হয় নাই। তাই নেক্সট বাগফিক্স এ গেলে এটিও করে দিব। তবে সেক্ষেত্রে মনে হয় সব টেবিল এর সব কলাম ইনডেক্স করা লাগবে। তাদের যে ডিমান্ড, সব কলাম দিয়ে সার্চ করার ব‌্যবস্থা থাকতে হবে কিনা!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edcef6bb49ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>