haocheng 積分 0

ㄟ,工程師注意的點果然不一樣 XD

kakashi 積分 1 編輯於

居然拉到這段好精彩啊(被踢飛

j0n 積分 0

透過Hibernate去操作DB的確是有快感而且可以擺脫寫SQL的痛苦,但是真的資料量一大就無可避免回到自己刻SQL的老路,ORM畢竟是提供framework,實在很難保證他可以對使用者的資料作最佳化的存取啊...

haocheng 積分 0

西湖站後面園區這邊每一個站都有撒花,超猛

IngramChen 積分 2 編輯於

我以前也是 Hibernate expert 咧 (自稱)

不過用了幾年後就丟棄了… 現在變 JdbcTemplate expert 惹

唉,如果有仔細研究 Hibernate 的 source 就知道他們設計的真是精良,是非常懂物件導向和關聯式資料庫的人設計的,使用 Hibernate 也會讓你感覺到你是在處理物件的生命週期,而不是關聯式資料。

問題大概就是資料本身本來就不適合用物件導向解決吧,尤其是資料可能很巨量。物件導向它是強在 UI 元件…

haocheng 積分 0

早上強制更新 app 之後可以看到第二世代了,趕快清一些空間出來吧,哈哈

fox 積分 0

聽聽八卦就好。神不要隨便拜。

haocheng 積分 0

終於推出了,不知道系統會不會改?不然以現在的玩法一樣沒多久就膩了...

IngramChen 積分 0

linode 的 tokyo2 剛開張我就搬過去了,開了五台小的。結果這幾個月間發生兩次硬體故障 reboot。是馬上就修好了,但覺得新機房還是不夠穩啊

haocheng 積分 0

是沒錯,不過還是比之前方便多了

IngramChen 積分 0

不錯

不過 OS 還是要 umount + resize file system,還是會有 down time

IngramChen 積分 1

$5 台幣 150 元的小 server 不錯用。適合拿來放放 blog、vpn 之類的

koji 積分 2

讓我想到 cockroachdb 就看到 hackernews 上的 comment1

One of the big differences is that Spanner only uses SQL for read-only operations, with a custom API for writes. We use standard SQL for both reads and writes, which means we also work with major ORMs like GORM, SQLAlchemy, and Hibernate (docs should be live today or tomorrow). Spanner's custom write API will make it difficult to work with existing frameworks, or to convert an existing application to Spanner. Cloud Spanner only works on Google Cloud and is a black-box managed service. CockroachDB is open source and can be run on-prem or in any cloud on commodity hardware. (We don't offer CockroachDB as a service yet, but may in the future)

IngramChen 積分 1 編輯於

很扯...

  • 支援 SQL select/join/subquery/index ...etc
  • 不支援 DML (要用它的 client),猜測是目前只限於做 primary key 相關的 update
  • 開一台 0.9 usd/hour,儲存和傳輸另外算錢

每一 instance 的能力 :

each Cloud Spanner node can provide up to 10,000 queries per second (QPS) of reads or 2000 QPS of writes (writing single rows at 1 KB data per row), and 2 TiB storage.

0.9 usd/hour 相當於 aws m4.4xlarge (16 core/64GB ram)

j0n 積分 1

還好現在寫的產品還是在用15年前就有的技術。硬要說"新東西"就是今年新版終於升上Java 8了 XDDDD

j0n 積分 0

因為有些是負的,所以Apple+Samsung+Sony的profits百分比會大於100 XD