<?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 Gabriela D&#39;Ávila Ferrara (gabi.dev) on Medium]]></title>
        <description><![CDATA[Stories by Gabriela D&#39;Ávila Ferrara (gabi.dev) on Medium]]></description>
        <link>https://medium.com/@gabidavila?source=rss-ab1c7c2208e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SfqhtfsBkj3OMX9T0bek0Q.jpeg</url>
            <title>Stories by Gabriela D&amp;#39;Ávila Ferrara (gabi.dev) on Medium</title>
            <link>https://medium.com/@gabidavila?source=rss-ab1c7c2208e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:08:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabidavila/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[The one where MySQL 8.0 lands on Google Cloud SQL]]></title>
            <link>https://medium.com/google-cloud/the-one-where-mysql-8-0-lands-on-google-cloud-sql-969820641841?source=rss-ab1c7c2208e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/969820641841</guid>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[cloud-sql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Gabriela D'Ávila Ferrara (gabi.dev)]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 17:05:52 GMT</pubDate>
            <atom:updated>2020-08-27T19:08:38.993Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Ada Doglace and Lily Grace (lilygrams)" src="https://cdn-images-1.medium.com/max/1024/1*X9C4uaRuB2-vWOglTDmSTQ.jpeg" /><figcaption><a href="https://www.instagram.com/ada_dpglace">Ada Doglace</a> and <a href="https://www.instagram.com/lilygramsrocks">Lily Grace (lilygrams)</a>. Photo by <a href="https://www.twitter.com/ircmaxell">Anthony Ferrara</a>.</figcaption></figure><p>There are many things that makes me happy. Puppies (see picture), food, wine and databases… (not particularly in that order). And things that makes me even happier such as a well designed schema and proper usage of ORM (Object Relational Mapping).</p><p>MySQL was the database I used to love to hate. It grew on me and the fact that long strides were made to make it more consistent and more modern kept me away from using other open source databases on a daily basis for my projects. And with grand expectation and admiration I am proud of the Cloud SQL team for achieving this milestone:</p><p><strong>Today we are making available <em>MySQL 8.0 on Cloud SQL</em></strong>. It’s not just a new version inside our managed databases portfolio, but it also comes with all Cloud SQL capabilities such as <a href="https://cloud.google.com/blog/products/gcp/digging-in-on-cloud-sql-automatic-storage-increases">Automatic Storage Increase</a>, <a href="https://cloud.google.com/sql/docs/mysql/high-availability">High Availability</a>, <a href="https://cloud.google.com/sql/docs/mysql/replication/cross-region-replicas">Cross-region Replication</a> and <a href="https://cloud.google.com/sql/docs/mysql/backup-recovery/pitr">PITR</a> (point in time recovery). And best yet: It’s not a beta, it’s a GA launch! See the <a href="https://cloud.google.com/blog/products/databases/mysql-8-is-now-on-cloud-sql">announcement</a>.</p><p>You can start using today from scratch or migrate an existing MySQL database to Cloud SQL; as a way to minimize downtime you can use the <a href="https://cloud.google.com/sql/docs/mysql/replication/configure-external-replica">External Replication</a> feature from your Google Cloud Console or via the <a href="https://cloud.google.com/sdk/gcloud"><em>gcloud</em></a> command-line tool.</p><p>MySQL 8.0 has <a href="https://mysqlserverteam.com/the-complete-list-of-new-features-in-mysql-8-0/">a huge list of new features</a>, and you can do a range of new operations and querying. You can even do silly things like Fibonacci sequence using SQL (<a href="https://gist.github.com/gabidavila/4cbdbe1a5a0c038dd2a28e85b37c9b51#file-fibonacci_cte-sql">it is true!</a>), <a href="https://gist.github.com/gabidavila/67111ce4cb032ae7ea0f92d1a6f1bd6f">traverse a Binary Tree</a> or even do the old <a href="https://en.wikipedia.org/wiki/Fizz_buzz">fizz-buzz</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d513bf2647f43257afda553643fedd7e/href">https://medium.com/media/d513bf2647f43257afda553643fedd7e/href</a></iframe><p>On a more serious note, and enterprise worthy, you can now avoid sub-queries (<a href="https://gabi.dev/2018/02/06/ramblings-on-optimizations-anti-patterns-and-n1/">or other N+1 problems</a>), have better access control, and use Window Functions. There are plenty of new stuff, and <a href="https://www.youtube.com/playlist?list=PLTeLTxkEDIsBixj7vKqEBgavyOuJ1y3zF">this is a small list of talks on MySQL 8.0</a> I gave since the preview versions in 2017. One of my favorites is the following:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2HKAM0BNdDM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2HKAM0BNdDM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2HKAM0BNdDM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a5fd402592a71d7df703a15c87b4f6f/href">https://medium.com/media/4a5fd402592a71d7df703a15c87b4f6f/href</a></iframe><p>At Google we define anyone that uses a keyboard to work on a technical aspect of a product a <em>Technical Practitioner. </em>It is a wider definition, however more inclusive to the DBAs, DevOps and SysAdmins alike.</p><p>My particular goal has always been to help the day-to-day practitioner do things they wouldn’t imagine their database was capable of. This is why I have the <a href="https://gabi.tips/office-hours">Office Hours.</a> This is why I do those talks and should do more blog posts.</p><p>If you want to learn more about MySQL 8.0 I ask you to read my website: <a href="https://gabi.dev/">gabi.dev</a>, where <a href="https://gabi.dev/?s=mysql+8">I posted several things on MySQL</a>.</p><p>Happy Launch day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=969820641841" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/the-one-where-mysql-8-0-lands-on-google-cloud-sql-969820641841">The one where MySQL 8.0 lands on Google Cloud SQL</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This is a cover, uhn?]]></title>
            <link>https://medium.com/@gabidavila/this-is-a-cover-uhn-f87bbdd8325f?source=rss-ab1c7c2208e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f87bbdd8325f</guid>
            <category><![CDATA[query]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[satire]]></category>
            <dc:creator><![CDATA[Gabriela D'Ávila Ferrara (gabi.dev)]]></dc:creator>
            <pubDate>Sat, 06 Jul 2019 22:02:10 GMT</pubDate>
            <atom:updated>2019-07-06T22:02:10.086Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You can guess which song it is, right?</blockquote><h3><strong>All about database</strong></h3><p>Because you know I am all about database<br>database, database, but no trigger (4x)</p><p>I am about database, base, base</p><p>Yeah it ain’t clear<br>This font is size 2<br>But I can query, query, like you supposed to do<br>Cause I got that Query Builder that y’all chase<br>All the wrong junk, in all weird places</p><p>I see that framework woking that magic up<br>We know this it ain’t SQL, come on now, write it up<br>If you love the planner, planner, try just tuning up!<br>Cause every millisecond counts from the input to result</p><p>Yeah, my DBA told don’t worry about table size<br>They say, “an index is there to help upright”<br>You know it may not be slick as in memory though<br>So if that’s you are into, get a noSQL and move along</p><p>Because you know I am all about database<br>database, database, but no trigger (4x)</p><p>I am about database, base, base</p><p>I’m bringing SQL back<br>Go ahead and tell those developers that<br>No, I am not playing it, the server is really fast<br>But I am here to tell you<br>That every every millisecond counts from the input to result</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f87bbdd8325f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to serve BigQuery results from MySQL with Cloud SQL]]></title>
            <link>https://medium.com/@gabidavila/how-to-serve-bigquery-results-from-mysql-with-cloud-sql-b7ddacc99299?source=rss-ab1c7c2208e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ddacc99299</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[cloud-sql]]></category>
            <category><![CDATA[bigquery]]></category>
            <dc:creator><![CDATA[Gabriela D'Ávila Ferrara (gabi.dev)]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 17:50:41 GMT</pubDate>
            <atom:updated>2019-01-07T17:54:15.214Z</atom:updated>
            <content:encoded><![CDATA[<p>See how was possible to use Cloud SQL as intermediary to serve results on Data Studio.</p><p>Given a dataset that you have on BigQuery, the script above can work to load any data to any schema and any table:</p><pre>#!/bin/bash<br><strong>BUCKET_FOLDER_URI</strong>=&quot;gs://general-bucket/table&quot;<br><strong>INSTANCE</strong>=&quot;instance_name&quot;<br><strong>DATABASE</strong>=&quot;schema_name&quot;<br><strong>TABLE</strong>=&quot;destination_table&quot;</pre><pre><strong>CSV_FILES</strong>=($(gsutil ls $BUCKET_FOLDER_URI))</pre><pre><strong>for</strong> csv <strong>in</strong> &quot;${CSV_FILES[@]}&quot;<br><strong>do</strong><br>    <strong>echo</strong> &quot;Importing ${csv}&quot;<br>    <br>    gcloud sql import csv $INSTANCE $csv --database=$DATABASE --table=$TABLE --quiet<br><strong>done</strong></pre><p>Leave the indexes disabled or to be added after the import and as you need them, each case is unique, and all columns index <strong>is not</strong> the general case.</p><h3>StackOverflow use case</h3><p>My colleague <a href="https://medium.com/u/279fe54c149a">Felipe Hoffa</a> wrote a blogpost about <a href="https://medium.com/@hoffa/when-will-stack-overflow-reply-how-to-predict-with-bigquery-553c24b546a3">how to predict the chances</a> of your question on StackOverflow to be answered using BQML. He trained a model with approximately 40 million possibilities and stored on a table with the following fields:</p><ul><li>minutes</li><li>predicted_label</li><li>probability_of_downvote</li><li>probability_of_answer</li><li>tag</li><li>first_word</li><li>ends_question</li><li>weekday_utc</li><li>account_creation_year</li><li>question_length</li><li>hour_utc</li></ul><p>Then, the next step is to create such table also on your MySQL Cloud SQL instance:</p><pre><strong>CREATE TABLE </strong>predictions (<br>  <strong>minutes                 NUMERIC</strong>(18, 15)        <strong>NOT NULL</strong>,<br>  <strong>predicted_label         NUMERIC</strong>(18, 16)        <strong>NOT NULL</strong>,<br>  <strong>probability_of_downvote NUMERIC</strong>(19, 17)        <strong>NOT NULL</strong>,<br>  <strong>probability_of_answer   NUMERIC</strong>(19, 17)        <strong>NOT NULL</strong>,<br>  <strong>tag                     VARCHAR</strong>(50)            <strong>NOT NULL</strong>,<br>  <strong>first_word              VARCHAR</strong>(30)            <strong>NOT NULL</strong>,<br>  <strong>ends_question           VARCHAR</strong>(10)            <strong>NOT NULL,</strong><br>  <strong>weekday_utc             VARCHAR</strong>(10)            <strong>NOT NULL</strong>,<br>  <strong>account_creation_year   INTEGER                NOT NULL</strong>,<br>  <strong>question_length         VARCHAR</strong>(10)            <strong>NOT NULL</strong>,<br>  <strong>hour_utc                INTEGER                NOT NULL<br></strong>);</pre><p>Then export the data from BigQuery:</p><pre>bq extract --destination_format CSV --field_delimiter &quot;,&quot; --print_header=false my-project:stackoverflow.predictions gs://bqml-predictions/data/predictions-*.csv</pre><p>This will generate several CSV files inside your bucket which you can see through the GUI or the gsutil ls my-bucket command.</p><p>Cloud SQL has a GUI to import files to a specific table, however you don&#39;t want to do that for each single file. To make things easier, I am using the script above to import those files into it:</p><pre>#!/bin/bash<br><strong>BUCKET_FOLDER_URI</strong>=&quot;gs://bqml-predictions/data&quot;<br><strong>INSTANCE</strong>=&quot;my_cloud_sql_instance&quot;<br><strong>DATABASE</strong>=&quot;my_schema_name&quot;<br><strong>TABLE</strong>=&quot;predictions&quot;<br><br><strong>CSV_FILES</strong>=($(gsutil ls $BUCKET_FOLDER_URI))<br><br><strong>for</strong> csv <strong>in</strong> &quot;${CSV_FILES[@]}&quot;<br><strong>do</strong><br>    <strong>echo</strong> &quot;Importing ${csv}&quot;<br><br>    # --async can&#39;t be used on the gcloud sql command<br>    # because it only accepts one import operation at a time<br>    <br>    gcloud sql import csv $INSTANCE $csv --database=$DATABASE --table=$TABLE --quiet<br><strong>done</strong></pre><p><strong>Side note</strong>: you still can use the LOAD DATA LOCAL INFILE for all the CSV&#39;s generated, or even generate a single file and import, but better to import small and often than large and once and have things broken.</p><h3>Consuming</h3><p>The Data Studio dashboard fires an impressive number of queries to display the data. Specially with all of those filters. In order to make it faster, we discovered that we needed two indexes:</p><pre>CREATE INDEX all_columns ON predictions(<br>tag, first_word, ends_question, weekday_utc, account_creation_year, question_length, hour_utc<br>);</pre><pre>CREATE INDEX all_columns_except_tag ON predictions(<br>first_word, ends_question, weekday_utc, account_creation_year, question_length, hour_utc<br>);</pre><p>If you want to see which queries are fired, I recommend enabling <strong><em>temporarily </em></strong>the performance_schema flag as on on your Cloud SQL instance. Then you will be able to see where the indexes are necessary for your use case. <strong>Do not </strong>leave the flag on permanently, it will impact on performance.</p><h3>Monitoring</h3><p>I chose to have an instance where the whole dataset would fit in memory on my instance. I also enabled High Availability and I am using <strong>Stackdriver</strong> to monitor CPU and memory as well with some custom alerts to notify me in case certain constraints are met.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwNf-BeOEnxvNks-VcJxJQ.png" /></figure><p>Another option is to use MySQL Workbench itself to look on how things are going, here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOOAoQfr7eVO00KN_dtXwQ.png" /><figcaption>MySQL Workbench</figcaption></figure><p>At this point traffic was pretty low, I expect those connection numbers and also the SELECT statements to have an increase over time.</p><h3>Take aways</h3><p>You can serve your data from BigQuery directly into Data Studio. but depending on the complexity of the queries, using it may be a bit frustrating because of the amount of records you are getting information from.</p><p>On this case performance was enhanced by using Cloud SQL as intermediary with the generated probabilities made on BigQuery with BQML and with the appropriate indexes.</p><p><em>See an error? Please comment below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ddacc99299" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finite Resources vs Infinite Knowledge]]></title>
            <link>https://medium.com/@gabidavila/finite-resources-vs-infinite-knowledge-cdeb84204d21?source=rss-ab1c7c2208e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdeb84204d21</guid>
            <category><![CDATA[impostor-syndrome]]></category>
            <category><![CDATA[burnout]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Gabriela D'Ávila Ferrara (gabi.dev)]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 17:15:15 GMT</pubDate>
            <atom:updated>2018-12-10T17:15:15.372Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>This was originally posted by me in the blog <a href="https://24daysindecember.net/">24 days in December</a>, curated by <a href="https://twitter.com/heiglandreas">Andreas Heigl</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpPhlg3P6swzZQkp8eoUIw.jpeg" /></figure><p>A lot of people don’t understand why I like to speak to the PHP Community so much; since I am a database person. The truth is that I am not a database person, I am a Software Engineer that happens to know a lot about databases and likes them.</p><p>Sometimes we need to get out of our comfort zone to discover what we really enjoy doing, and that was no different for me. A lot of developers <strong>have</strong> to learn a specialized skill set at work because either they are the only technical resource available, or the only ones willing to put in the work to learn the needed skills. And that includes DevOps, Data Engineers, Test Engineers, SREs, etc.</p><p>But being the single resource is not an excuse to attempt being the Jack-of-all-trades at your company.</p><p>Maybe you’ve heard the commonplace myth: “You are only a REAL programmer if you code ALL the time”. I understand the drive, which sometimes is almost like a mania, to learn a new thing because it is cool and makes your head spin, but there is only so much that a brain can take without a break.</p><p>Life is out there too, outside of this screen. You may have responsibilities that don’t allow you to dedicate as much time as you might want to spend coding, or may make you not want to do so. And you know what? That is NORMAL. Most human beings in the world don’t bring their work home and continue working until they get exhausted.</p><p>Maybe you’re not bringing your work home, but are exhausting yourself trying to “keep up”, for example, with all the new JavaScript frameworks and what’s changed from one to another. You may succeed for a while (again, they have a LOT of frameworks), but what is the price you are paying for it? Is it your body all tensed up? Having trouble to sleep? Anxiety? Compulsion? We all pay a price when we overwork on something.</p><p>If you are at a gym and overwork yourself you will feel physical pain, but on this <em>knowledge high</em> the consequences may take a while to appear. I am no doctor, but I have experience, and in my case, my brain AND my body charged a high price for my constant striving. You can read a bit more about that <a href="https://medium.com/@gabidavila/how-i-used-cs-concepts-to-get-a-gastric-bypass-surgery-done-in-less-than-45-days-8d2ae4ee627c">in this post</a>.</p><p>I have a few tips that may help depending on how disciplined and open-minded you can be:</p><ul><li>Book a time on your calendar for recurring studies that you <strong>wish</strong> to learn. I am not saying for you to book a 3h slot five times a week, but start small, maybe a 30 min session twice a week or a book chapter per session?</li><li>I am also not talking about stuff you need to learn to do the basics of your job. For example: Your company decides to move the entire stack to Node.js; it’s one thing to study a bit at home, and another to completely move your learning curve out of your working hours. THAT is <strong>not</strong> ok.</li><li>Learn something different than your craft, have hobbies, they are a good escape valve. Book time to spend on your hobbies.</li><li>Avoid as much as possible bringing work home. One thing you can do is to not check email after 6 pm. Close out of it completely, as well as Slack, and any other apps that might rope you back into thinking about work on your off hours. I guarantee that if stuff is on fire, someone <em>*will*</em> call you.</li><li>Your GitHub <strong>is not</strong> your résumé. I know a lot of people that are excellent Software Engineers and aren’t on GitHub due to work in private sectors like banks, for instance.</li></ul><p>And be yourself. Putting a facade is tiresome, energy draining, and honestly? Useless. It’s more frustrating to you to put up a show than to be honest with people about your strengths and shortcomings.</p><p>For this 2019 I wish you all the wisdom to be able to better take care of yourself.</p><p>You can reach me at <a href="http://gabriela.io/">http://gabriela.io</a> or on Twitter <a href="http://www.twitter.com/gabidavila">@gabidavila</a> (My DMs are open).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdeb84204d21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gastric Bypass: using map-reduce to lose over 50% of your weight]]></title>
            <link>https://medium.com/@gabidavila/how-i-used-cs-concepts-to-get-a-gastric-bypass-surgery-done-in-less-than-45-days-8d2ae4ee627c?source=rss-ab1c7c2208e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d2ae4ee627c</guid>
            <category><![CDATA[weight-loss]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[gastric-bypass-surgery]]></category>
            <dc:creator><![CDATA[Gabriela D'Ávila Ferrara (gabi.dev)]]></dc:creator>
            <pubDate>Tue, 31 May 2016 17:20:05 GMT</pubDate>
            <atom:updated>2017-11-08T14:34:02.461Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Disclaimer</em></strong>: the series of events I am going to be discussions is by no means a reflection of what <em>should </em>happen during your Gastric Bypass surgery preparation. This article aims to be a story about how the system works in my home country (Brazil) and how I leveraged it to achieve what was necessary for my well being.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqSzaem--6NrdyTDX4IrBw.jpeg" /><figcaption>Before and After (exactly 24 months after surgery)</figcaption></figure><h4>How I came about gastric bypass surgery</h4><p>For far too long I suffered with my weight. Weight issues run in my family. Until the age of 20, I was a bit overweight (5kg/11lb over) but nothing major for a 1.61m/5&#39;3ft woman.</p><p>As I moved away from home and started working full time and going to college at night, healthy habits were impossible to keep for me. Maintaining this rhythm for 4 years lead me to use food as a comfort mechanism to compensate for parts of my life that weren’t going well. Using food as an emotional crutch led to a 20kg weight gain in about 18 months (that’s somewhere around 44lbs).</p><p>For years I tried diets, medicine, everything under the sun to help me shed the weight. Looking back on it, it is very hard to cure something mental through physical means.</p><p>Weight gain comes with a lot of other problems:</p><ul><li>sleep apnea;</li><li><a href="http://www.nhs.uk/conditions/polycystic-ovarian-syndrome/pages/introduction.aspx">polycystic ovary syndrome</a> (it makes the condition worse);</li><li>gastric reflux;</li><li>steatosis (this means fat on your liver, not good, baby).</li></ul><p>There are tons of other stuff like <a href="http://patient.info/health/stress-incontinence">urinary stress incontinence</a> that can be a bit embarrassing if you are having pneumonia and can’t hold your coughs (been there, done that).</p><p>At the time, I had been going to the same endocrinologist for the past 3 years and we discussed the Gastric Bypass surgery a couple times, but when I would comment at home and get no support with people saying to me: “I know someone who did and died”, or: “You will have so much extra skin”. In the end I was always putting it aside, it was easy to be dismissive about it.</p><p>By August 2014 I ballooned to 105 kg/231lb. Everything was hard: walking, buying clothes that didn’t make me look like an old lady, etc. Everything most of us take for granted in everyday life felt like a conscious effort. Social pressure took its toll: the looks on the train, the snark, the way people would analyze things I ate… After 2 long years of being in a deep depression and not leaving my house, I came to a breaking point.</p><p>I remember clearly the day of a Brazilian game, during the World Cup, when a lady pushed me to get out of the train (it was full). As I was about to leave the train car as well, I said to her: “I am about to leave too, just wait”. She started calling me names, saying that if I didn’t have a fat ass and just shut my mouth I wouldn’t occupy that much space. I remember people looking at me, silent, no one objected. I left the station crying. I am not a wilting flowers by any stretch of the imagination, but at the time, I could not retort. The constant fat phobia had never crystallized as much until that day. It was time to make a change in my life and I looked into the surgery.</p><h4>The rules</h4><p>There are rules to having a this type of surgery in Brazil. You may fit between two categories:</p><p><strong>If you have a BMI over 40.0</strong></p><p>You are already qualified to do the surgery.</p><p><strong>If you have a BMI between 35.0 and 39.9</strong></p><p>You <em>can</em> do the surgery if:</p><ul><li>You can prove your tried to lose weight for the past 2 years</li><li>You have any other obesity comorbidity associated to it (like diabetes)</li></ul><p>I fit on the second category because my BMI was of 39.9 and I had at least 3 of those associated diseases.</p><h4>What you need once you are qualified</h4><p>After confirming that you are qualified to have this surgery, you need:</p><ul><li>A referral from an endocrinologist saying you tried to lose weight for the past years;</li><li>A psychiatric evaluation from a psychologist or psychiatrist attesting you are mentally stable to do the surgery;</li><li>A dietitian evaluation of how your diet current is and how it will be after the surgery;</li><li>The gastric surgeon’s evaluation;</li><li>The pulmonologist’s evaluation to see if you don’t have any risks of your lungs collapsing during the operation;</li><li>A cardiologist final evaluation (after looking at all the other doctors evaluations and exams) saying what the <em>risk</em> of you having a cardiac arrest during surgery is.</li></ul><h3>Beating the average: going through a 6 months process in less than 45 days</h3><p>On the 3rd of March of 2015, I decided to go through the process to get the surgery. I saw this surgery as the chance to start with a clean slate. It was the opportunity to get a new start. I called my mom, and she was happy to support me.</p><p>I decided to get 2 opinions about gastric surgeons. Since I was active on Facebook groups discussing this surgery, I found 2 doctors and one for the 5th of March and another one for 9th of March.</p><p>Turns out, I preferred the second surgeon. My Endocrinologist gave me the evaluation fast, knowing that I was finally taking her advice. At that time I also made an appointment to get the psychiatric evaluation from my regular doctor but he could only see me at the end of the month. He assured me he would help me get the evaluation since he was following me through the past year.</p><p>As a side note, It is important to say that Brazilian public healthcare is complicated. To do this same procedure it takes from 2 to 5 years. There is a waiting list and booking tests and exams always demands another queue. I was fortunate enough to work for a good company that had 100% insurance coverage and one of their best plans. In the end my calendars looked something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyVcMrWNPfwpTCIc-twqXg.png" /><figcaption>March 2015 Calendar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJipfYtgzbO1lf4n808BLg.png" /><figcaption>April 2015 Calendar</figcaption></figure><p>The calendar names indicate the <strong>date</strong> I made the appointment (click the calendar to see full image). Those appointments would unavoidably cause other appointments because exams were necessary.</p><p>Here is a summarized view of the calendar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LU9CEAum5fQwVpyf8LIxhA.png" /><figcaption>Summarised version of calendar</figcaption></figure><h3>Mapping and Reducing timelines</h3><p>One could argue I did parallel processing and buffering setting up the appointments even before seeing the specialist. I <em>knew</em> I would need an <strong>endoscopy</strong> exam, knowing it had the potential to take too long, I did the appointment even before the doctor asked. That was true for most of the exams, for the other ones, queuing up was the only way to go.</p><p>I was lucky in others, the sleep exam, polysomnography, they would have only for months in advance, but someone dropped out last minute and they asked me if I was available (sure!).</p><p>Talking to other people that went through the same thing I did, they all take 6 months to 2 years to get the whole thing done. And this is really important, engage yourself in Facebook groups about the subject, get advice. One thing I will tell you, there is no right recipe to this journey. Everyone I talked about had different somehow.</p><p>Some people took a while to get the psych evaluation, and this is really important, you need to be stable to be able to be sure to make such life changing decision. Depending on the technique, the <em>Sleeve</em> for instance, is irreversible. Mine is reversible, but extremely hard to do and there isn’t many documented cases. My advice for you that is going through this is: find your triggers, discover <strong>why</strong> you eat. Is it something purely metabolic? <strong>Why</strong> do you want to this, is it just to be thin and pretty? Or your health is so compromised you need help?</p><p>People ask me why I was in a hurry. Indeed I took less than 45 days to go through the motions, but without the company support (thanks <a href="http://www.scup.com.br/">Scup/Sprinklr</a>!) and my mom’s it would not be possible go through all of that. My resolve was set in stone, I had finally realized in how much suffering I was. I didn’t recognized myself, it took me years to see through that, but once I made up my mind I <em>knew</em> it was the right thing to do.</p><p>I don’t regret the craziness for a second, it wasn’t easy the postoperative (this alone makes a whole new blog post), but now 30 months after it I tell you it was the best thing I ever did in my life: it gave <em>myself</em> back to me. <strong>I am 100% me again, even after eliminating 52.38% of me in the process.</strong></p><p><em>Post updated on the 6th of November of 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d2ae4ee627c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>