<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>tech/snippets - Category - FH Jurnal</title>
        <link>https://sukangetik.com/categories/tech/snippets/</link>
        <description>tech/snippets - Category - FH Jurnal</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feri.harsanto@gmail.com (fhpermadi)</managingEditor>
            <webMaster>feri.harsanto@gmail.com (fhpermadi)</webMaster><atom:link href="https://sukangetik.com/categories/tech/snippets/" rel="self" type="application/rss+xml" /><item>
    <title>Postgresql Vacuum</title>
    <link>https://sukangetik.com/tech/snippets/postgresql-vacuum/</link>
    <pubDate>Thu, 30 Nov 2023 19:50:04 &#43;0700</pubDate>
    <author>fhpermadi</author>
    <guid>https://sukangetik.com/tech/snippets/postgresql-vacuum/</guid>
    <description><![CDATA[When is VACUUM needed 1 2 3 4 5 6 7 8 9 10 SELECT relname AS table_name, n_live_tup, n_dead_tup, last_vacuum, last_autovacuum FROM pg_stat_user_tables WHERE n_dead_tup &gt; (n_live_tup * 0.2); -- Using 20% as the threshold In this query:
relname is the name of the table.
n_live_tup is the number of live tuples (rows) in the table.
n_dead_tup is the number of dead tuples in the table.
last_vacuum shows when the last manual VACUUM was performed on the table.]]></description>
</item>
<item>
    <title>Golang Mongo</title>
    <link>https://sukangetik.com/tech/snippets/golang-mongo-json/</link>
    <pubDate>Thu, 30 Nov 2023 18:25:14 &#43;0700</pubDate>
    <author>fhpermadi</author>
    <guid>https://sukangetik.com/tech/snippets/golang-mongo-json/</guid>
    <description><![CDATA[Handle MongoDB Collection intermitten between String and Embedded Document 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 func (a *Address) UnmarshalBSONValue(t bsontype.Type, data []byte) error { if s, _, ok := bsoncore.ReadString(data); ok { a.Address = s return nil } if t != bson.TypeEmbeddedDocument { return fmt.Errorf(&#34;expected embedded document, got BSON type: %v&#34;, t) } var doc bson.]]></description>
</item>
<item>
    <title>Oracle Operations</title>
    <link>https://sukangetik.com/tech/snippets/oracle-ops/</link>
    <pubDate>Sun, 09 Jul 2023 20:19:30 &#43;0700</pubDate>
    <author>fhpermadi</author>
    <guid>https://sukangetik.com/tech/snippets/oracle-ops/</guid>
    <description><![CDATA[<p>Discover what the issue in oracle day to day operations</p>]]></description>
</item>
<item>
    <title>SQL Server: Create/Drop Scripts for existing FK</title>
    <link>https://sukangetik.com/tech/snippets/mssql-fk/</link>
    <pubDate>Sun, 09 Jul 2023 18:47:42 &#43;0700</pubDate>
    <author>fhpermadi</author>
    <guid>https://sukangetik.com/tech/snippets/mssql-fk/</guid>
    <description><![CDATA[Create FK 1 2 3 4 5 6 7 8 9 10 SELECT &#39;ALTER TABLE &#39; + SCHEMA_NAME(F.schema_id) + &#39;.&#39; + OBJECT_NAME(F.parent_object_id) + &#39; ADD CONSTRAINT &#39; + F.name + &#39; FOREIGN KEY &#39; + &#39;(&#39; + COL_NAME(FC.parent_object_id, FC.parent_column_id) + &#39;)&#39; + &#39; REFERENCES &#39; + SCHEMA_NAME(RefObj.schema_id) + &#39;.&#39; + OBJECT_NAME(F.referenced_object_id) + &#39; (&#39; + COL_NAME(FC.referenced_object_id, FC.referenced_column_id) + &#39;)&#39; FROM SYS.FOREIGN_KEYS AS F INNER JOIN SYS.FOREIGN_KEY_COLUMNS AS FC ON F.OBJECT_ID = FC.]]></description>
</item>
</channel>
</rss>
