>>> YieldNull
  • /blog
  • /archives
  • /github
  • /about

Blog Entries all / by tag / by year

  • PostgreSQL Internals: Shared Buffer

    2022-07-09 16:09:43 / PostgreSQL /7449 hits

    当你 INSERT 一行记录到 PostgreSQL 时,数据并不会立即写到磁盘文件中,而是会先写入 Shared Buffer,过一段时间才会落盘。同样的,当你 SELECT 一些数据时,也不会每次都会实时从磁盘文件中读取,很大概率会从 Shared Buffer 直接获取。那么 Shared Buffer 内部的结构是怎样的呢?本文将会介绍 Shared Buffer 的工作原理,逐步揭开其神秘面纱。

    Read more...


  • Haystack: 一种分布式对象存储系统

    2022-06-22 23:38:18 / Storage /3840 hits

    假如你维护着一个社交媒体公司的图片服务,每天都会有几十亿张照片、缩略图需要存储,还需要快速响应对所有历史照片的随机查询请求,那么你会怎么进行系统设计呢?

    Read more...


  • 浅析KMP算法

    2022-06-08 23:37:33 / Algorithm /3863 hits

    Read more...


  • log4j-rce 复现

    2021-12-11 16:15:26 / Java /4153 hits

    Read more...


  • PostgreSQL字段对齐规则

    2021-10-16 20:16:49 / PostgreSQL /4571 hits

    PostgreSQL在存储一行数据时,会对各个字段进行对齐。在设计表结构时,需要合理安排字段顺序,减少磁盘空间占用。

    postgres=# select typname, typalign, typlen from pg_type where typname in ('int4', 'int8', 'bool', 'float4', 'float8', 'bytea', 'text', 'timestamptz', 'serial', 'json', 'int8[]');
       typname   | typalign | typlen
    -------------+----------+--------
     bool        | c        |      1
     bytea       | i        |     -1
     int8        | d        |      8
     int4        | i        |      4
     text        | i        |     -1
     json        | i        |     -1
     float4      | i        |      4
     float8      | d        |      8
     timestamptz | d        |      8
    (9 rows)postgres=#
    

    Read more...


  • Java客户端软件破解方法-以KafkaTool为例

    2021-04-11 14:01:10 / Java /6144 hits

    最近在使用kafkatool 作为查看Kafka消息的工具,但是只支持text、json、xml等常见格式。若想支持自定义的消息格式,例如protobuf,则需要自己编写插件。辛辛苦苦写好一个插件后,发现需要付费才能使用。向来都是白嫖的我,想到它既然是用Java写的,那么反编译一下,是不是有希望绕过付费呢?

    Read more...


  • « Previous 1 / 12
  • Next 3 / 12 »

About this site © YieldNull,