{"id":50900,"date":"2024-05-15T00:00:00","date_gmt":"2024-05-15T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/"},"modified":"2025-11-14T07:56:43","modified_gmt":"2025-11-14T15:56:43","slug":"griddb-partitioning-and-expiry","status":"publish","type":"post","link":"https:\/\/www.griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/","title":{"rendered":"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c"},"content":{"rendered":"<p>\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB\u306e\u671f\u9650\u5207\u308c\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u9032\u3081\u308b\u3068\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c\u30eb\u30fc\u30eb\u3092\u6301\u3064\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30c6\u30fc\u30d6\u30eb\u306b\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u3069\u306e\u884c\u304c\u4fdd\u5b58\u3055\u308c\u3001\u3069\u306e\u884c\u304c\uff08\u671f\u9650\u5207\u308c\u306e\u305f\u3081\uff09\u5373\u5ea7\u306b\u30c0\u30f3\u30d7\u3055\u308c\u308b\u304b\u3092\u8abf\u3079\u308b\u5c0f\u3055\u306apython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u7279\u5225\u306a\u304a\u77e5\u3089\u305b<\/h2>\n<p>\u3053\u306e\u30b3\u30fc\u30b9\u3067\u306f\u3001GridDB\u3092\u6c38\u7d9a\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u306eJava\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30fc\u30b9\u306f100%\u7121\u6599\u3067\u3001\u3069\u306a\u305f\u3067\u3082\u53d7\u8b1b\u3067\u304d\u307e\u3059\uff1a <a href=\"https:\/\/www.udemy.com\/course\/building-a-full-stack-java-application-part-ii\">https:\/\/www.udemy.com\/course\/building-a-full-stack-java-application-part-ii<\/a>\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30b9\u3067\u306f\u3001GridLog\u3068\u547c\u3070\u308c\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3001\u691c\u7d22\u53ef\u80fd\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30ed\u30b0\u30d3\u30e5\u30fc\u30a2\u3092\u5099\u3048\u305f\u6c38\u7d9a\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30ed\u30b0\u3092\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u4eca\u3059\u3050\u767b\u9332\u3057\u3066\u3001GridDB\u3068\u305d\u308c\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u69cb\u7bc9\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u5b66\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>GridDB\u3001Java\u3001Python\u3001\u305d\u3057\u3066<a href=\"https:\/\/github.com\/griddb\/python_client\">GridDB Python Client<\/a>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>GridDB\u306e\u30b3\u30f3\u30c6\u30ca\u3084\u30c6\u30fc\u30d6\u30eb\u3092\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u30eb\u30fc\u30eb\u4ed8\u304d\u3067\u4f5c\u6210\u3059\u308b\u306b\u306fSQL\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 <code>jpype<\/code> \u3068\u3044\u3046 python \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u901a\u3057\u3066 JDBC \u7d4c\u7531\u3067 GridDB \u306b\u63a5\u7d9a\u3059\u308b\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u306a python \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u7528\u3059\u308b\u5168\u3066\u306e python \u30e9\u30a4\u30d6\u30e9\u30ea\u306e <code>requirements.txt<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u3059\u3079\u3066\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f https:\/\/github.com\/griddbnet\/Blogs\/tree\/partitioning_expiry \u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bclone\u3067\u304d\u307e\u3059\uff1a<\/p>\n<p><code>$ git clone https:\/\/github.com\/griddbnet\/Blogs.git --branch partitioning_expiry<\/code><\/p>\n<h2>GridDB\u3068\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0<\/h2>\n<p>\u6709\u52b9\u671f\u9650\u89e3\u653e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3067\u3001\u306a\u305c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5f53\u305f\u3063\u3066\u3044\u308b\u306e\u304b\u4e0d\u601d\u8b70\u306b\u601d\u3046\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u305d\u308c\u306f\u6709\u52b9\u671f\u9650\u89e3\u653e\u304c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u671f\u9650\u5207\u308c\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u3082\u4f55\u3089\u304b\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u30fb\u30eb\u30fc\u30eb\u3092\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GridDB\u306b\u306f3\u7a2e\u985e\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u304c\u3042\u308a\u307e\u3059\uff1a \u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3001\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3001\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3060\u3002\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3001\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3001\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306f\u3001\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3067\u3059\u3002\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3067\u306f\u6709\u52b9\u671f\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3064\u307e\u308a\u3001\u79c1\u305f\u3061\u306f\u4e3b\u306b\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5206\u5272\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u3092\u7d39\u4ecb\u3059\u308b\u524d\u306b\u3001\u3053\u308c\u3089\u306e\u7570\u306a\u308b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u65b9\u6cd5\u304c\u4f55\u3092\u610f\u5473\u3059\u308b\u306e\u304b\u3092\u7c21\u5358\u306b\u5fa9\u7fd2\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0<\/h3>\n<p>\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306f\u3001\u6642\u7cfb\u5217\u30b3\u30f3\u30c6\u30ca\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30fb\u30b3\u30f3\u30c6\u30ca\u306e\u4e21\u65b9\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306e\u884c\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5168\u4f53\u3067\u5747\u7b49\u306b\u5206\u6563\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u5229\u70b9\u306f\u3001\u4efb\u610f\u306e\u578b\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u6642\u9593\u30d9\u30fc\u30b9\u306e\u5217\u30c7\u30fc\u30bf\u578b\u306b\u4f9d\u5b58\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0<\/h3>\n<p>\u524d\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001\u3053\u308c\u3089\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3055\u308c\u307e\u3059\uff1a \u300c\u30c6\u30fc\u30d6\u30eb\u306e\u884c\u306f\u6307\u5b9a\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u5024\u3067\u5206\u5272\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u5404\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u4e0a\u9650\u3068\u4e0b\u9650\u306f\u3001\u30eb\u30fc\u30eb\u306b\u57fa\u3065\u3044\u3066GridDB\u304c\u81ea\u52d5\u7684\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306fTIME_SERIES\u30b3\u30f3\u30c6\u30ca\u3068\u305d\u306e<code>rowkey<\/code>\uff08\u3053\u308c\u3089\u306f\u5e38\u306bTIMESTAMP\u578b\u3067\u3042\u308b\uff09\u3067\u6a5f\u80fd\u3059\u308b\u304c\u3001\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca\u3067\u3082\u6a5f\u80fd\u3057\u307e\u3059\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u30ab\u30e9\u30e0\u3092 TIMESTAMP \u578b\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001 \u305d\u306e\u6642\u9593\u30d9\u30fc\u30b9\u306e\u30ab\u30e9\u30e0\u3092 <code>NOT NULL<\/code> \u304b\u3064 <code>PRIMARY KEY<\/code> \u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0<\/h3>\n<p>\u304a\u5bdf\u3057\u306e\u901a\u308a\u3001\u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u65b9\u6cd5\u306f\u4e0a\u8a18\u306e2\u3064\u306e\u65b9\u6cd5\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3082\u306e\u3067\u3059\u3002\u307e\u305a\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u306b\u57fa\u3065\u3044\u3066\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3092\u884c\u3044\u3001\u3055\u3089\u306b\u30cf\u30c3\u30b7\u30e5\u306b\u57fa\u3065\u3044\u3066\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002\u533a\u9593\u5206\u5272\u30ab\u30a6\u30f3\u30c8\u3068\u30cf\u30c3\u30b7\u30e5\u5206\u5272\u30ab\u30a6\u30f3\u30c8\u3092\u639b\u3051\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306e\u5168\u91cf\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u305d\u308c\u305e\u308c\u306e\u5206\u5272\u65b9\u6cd5\u3092\u3044\u3064\u4f7f\u3046\u304b<\/h3>\n<p>\u3069\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3069\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u65b9\u6cd5\u3092\u4f7f\u3046\u3079\u304d\u304b\u3068\u3044\u3046\u8cea\u554f\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u3082\u3057\u30c7\u30fc\u30bf\u304c\u6642\u9593\u7684\u306b\u5747\u7b49\u306b\u5206\u5272\u3067\u304d\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3092\u4f7f\u3046\u3068\u3088\u3044\u3067\u3059\u3002\u30c7\u30fc\u30bf\u3092\u5747\u7b49\u306b\u5206\u5272\u3067\u304d\u3001\u3055\u3089\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u3069\u3061\u3089\u3082\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u3042\u308c\u3070\u3001\u901a\u5e38\u306e\u30cf\u30c3\u30b7\u30e5\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>\u6709\u52b9\u671f\u9650\u30eb\u30fc\u30eb<\/h2>\n<p>\u4e0a\u8a18\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001\u6709\u52b9\u671f\u9650\u30eb\u30fc\u30eb\u306f\u3059\u3079\u3066\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u3067\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3001\u6709\u52b9\u671f\u9650\u30eb\u30fc\u30eb\u306f\u5b8c\u5168\u306b\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001\u6709\u52b9\u671f\u9650\u30eb\u30fc\u30eb\u3068\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u30fb\u30eb\u30fc\u30eb\u306b\u95a2\u9023\u3059\u308b\u8ffd\u52a0\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u4f8b\u3092\u898b\u3066\u8aac\u660e\u3057\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066GridDB CLI\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sql\">CREATE TABLE IF NOT EXISTS pyIntPart (\n  date TIMESTAMP NOT NULL PRIMARY KEY,\n  value STRING\n\nWITH\n(expiration_type='PARTITION',expiration_time=10,expiration_time_unit='DAY')\nPARTITION BY RANGE (date) EVERY (5, DAY);<\/code><\/pre>\n<\/div>\n<p>WITH<code>\u306e\u524d\u306f\u3059\u3079\u3066\u6a19\u6e96\u7684\u306a\u3082\u306e\u3067\u3059\u304c\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u578b\u306f2\u3064\u306e\u7279\u5225\u306a\u5c5e\u6027\u3092\u53d6\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\uff1a NOT NULL\u3068PRIMARY KEY\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u4e21\u65b9\u3068\u3082\u3001\u30a4\u30f3\u30bf\u30fc\u30d0\u30eb\u30fb\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c9\u30fb\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30fb\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3067\u3059\u3002\u6709\u52b9\u671f\u9650\u3068\u5358\u4f4d\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u3001\u30c7\u30fc\u30bf\u306e\u884c\u304c \u300c\u30b3\u30fc\u30eb\u30c9\u300d\uff08\u691c\u7d22\u4e0d\u80fd\uff09\u306b\u306a\u308a\u3001\u6700\u7d42\u7684\u306b\u30c7\u30a3\u30b9\u30af\u304b\u3089\u524a\u9664\u3055\u308c\u308b\u983b\u5ea6\u3092\u660e\u793a\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u5358\u4f4d\u3092<\/code>DAY`\u3001\u6642\u9593\u309210\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30c7\u30fc\u30bf\u304c10\u65e5\u7d4c\u904e\u3057\u305f\u6642\u70b9\u3067\u3001\u30c7\u30fc\u30bf\u306f\u6bb5\u968e\u7684\u306b\u524a\u9664\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3057\u3053\u308c\u3089\u306e\u884c\u304c\u500b\u5225\u306b\u671f\u9650\u5207\u308c\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070\u305d\u3046\u306a\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u671f\u9650\u5207\u308c\u306e\u30bf\u30a4\u30d7\u306fPARTITION\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u30c6\u30fc\u30d6\u30eb<code>pyIntPart<\/code>\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u7bc4\u56f2\u306f5\u65e5\u9593\u3067\u3059\u3002\u3064\u307e\u308a\u30011\u67081\u65e5\u304b\u30891\u67086\u65e5\u307e\u3067\u306e\u3059\u3079\u3066\u306e\u884c\u306f\u30011\u3064\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u5165\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u304c\u884c\u308f\u308c\u308b\u306e\u306f\u3001\u671f\u9650\u5207\u308c\u306e\u30c7\u30fc\u30bf\u304c\u3069\u306e\u3088\u3046\u306b\u51e6\u7406\u3055\u308c\u308b\u304b\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>date<\/th>\n<th>value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2024-01-01T00:00:00.000Z<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>2024-01-02T00:00:00.000Z<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2024-01-03T00:00:00.000Z<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>2024-01-04T00:00:00.000Z<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>2024-01-05T00:00:00.000Z<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>2024-01-06T00:00:00.000Z<\/td>\n<td>5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u304c1\u670812\u65e5\u3060\u3068\u3059\u308b\u3068\u3001\u6700\u521d\u306e2\u884c\u306e\u65e5\u4ed8\u306f10\u65e5\u4ee5\u4e0a\u524d\u306e\u3082\u306e\u306a\u306e\u3067\u3001\u3059\u3067\u306b\u524a\u9664\u3055\u308c\u3066\u3044\u308b\u3068\u60f3\u50cf\u3059\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u30c7\u30fc\u30bf\u306f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u4e2d\u3067\u6700\u3082\u65b0\u3057\u3044\u30c7\u30fc\u30bf\uff085\u65e5\uff09\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u306e\u30c7\u30fc\u30bf\u306f\u3059\u3079\u30661\u670816\u65e5\u307e\u3067\u5b58\u7d9a\u3059\u308b\u3002\u3053\u306e\u30c7\u30fc\u30bf\u306f1\u670816\u65e5\u307e\u3067\u6709\u52b9\u3067\u3001\u305d\u306e\u5f8c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5168\u4f53\u304c\u6bb5\u968e\u7684\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001\u7570\u306a\u308b\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u3053\u306e\u30c7\u30fc\u30bf\u304c\u524a\u9664\u3055\u308c\u308b\u983b\u5ea6\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Python\u306e\u4f8b\u3067\u306f\u3001<code>TODAY<\/code>\u304b\u3089\u958b\u59cb\u3057\u300120\u65e5\u524d\u307e\u3067\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3084\u304c\u3066\u30c7\u30fc\u30bf\u304c\u53e4\u304f\u306a\u308b\u3068\u3001GridDB\u306f\u5373\u5ea7\u306b\u30c7\u30fc\u30bf\u3092 \u300ccold \u300d\u306b\u79fb\u3057\u307e\u3059\u3002\u305d\u306e\u524d\u306b\u3001SQL\u3067GridDB\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">import jpype\nimport jpype.dbapi2\nfrom datetime import datetime, timedelta\nimport pandas as pd\n\n\nurl = \"jdbc:gs:\/\/127.0.0.1:20001\/myCluster\/public\"\njpype.startJVM(jpype.getDefaultJVMPath(), \"-ea\", \"-Djava.class.path=.\/lib\/gridstore-jdbc.jar\")\nconn = jpype.dbapi2.connect(url, driver=\"com.toshiba.mwcloud.gs.sql.Driver\", driver_args={\"user\": \"admin\", \"password\": \"admin\"})\ncurs = conn.cursor()<\/code><\/pre>\n<\/div>\n<p>jpype<code>\u3067\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306e<\/code>gridstore-jdbc jar<code>\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3001\u624b\u52d5\u3067<\/code>JVM` \u3092\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002(\u3053\u306e\u305f\u3081\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306fJava\u304c\u5fc5\u9808\u306e\u524d\u63d0\u6761\u4ef6\u3068\u306a\u3063\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<p>\u63a5\u7d9a\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30b5\u30fc\u30c8\u3057\u307e\u3057\u3087\u3046\u3002\u306a\u304a\u3001Interval Hash Partitioned\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30bb\u30af\u30b7\u30e7\u30f3\u3082\u3042\u308a\u307e\u3059\u304c\u3001Interval Partitioned\u30c6\u30fc\u30d6\u30eb\u3068\u30b3\u30f3\u30bb\u30d7\u30c8\u304c\u975e\u5e38\u306b\u4f3c\u3066\u3044\u308b\u305f\u3081\u3001\u8aac\u660e\u306f\u63a7\u3048\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">createIntervalPartition = \"\"\"CREATE TABLE IF NOT EXISTS pyIntPart (\n  date TIMESTAMP NOT NULL PRIMARY KEY,\n  value STRING\n)\nWITH\n(expiration_type='PARTITION',expiration_time=10,expiration_time_unit='DAY')\nPARTITION BY RANGE (date) EVERY (5, DAY);\"\"\"\ncurs.execute(createIntervalPartition)\n\nnow = datetime.utcnow()\nfor x in range (0, 20):\n    pyIntPart = \"INSERT INTO pyIntPart values ( TO_TIMESTAMP_MS(\" + str(now.timestamp()*1000) +\"), 'val\" + str(x) + \"')\"\n    pyIntHashPart = \"INSERT INTO pyIntHashPart values ( TO_TIMESTAMP_MS(\" + str(now.timestamp()*1000) +\"), 'val\" + str(x) + \"')\"\n    #print(pyIntPart)\n    #print(pyIntHashPart)\n    curs.execute(pyIntPart)\n    curs.execute(pyIntHashPart)\n    now = now - timedelta(days=1)\n\ncurs.execute(\"SELECT * FROM pyIntPart\")\ncols = tuple(zip(*curs.description))[0]\ndf = pd.DataFrame(curs.fetchall(), columns=cols)\nprint(df)<\/code><\/pre>\n<\/div>\n<p>The results: (now: <code>2024-03-12 00:47:03.714053<\/code>)<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">                      date  value\n0  2024-03-02 00:47:03.714  val10\n1  2024-03-01 00:47:03.714  val11\n2  2024-02-29 00:47:03.714  val12\n3  2024-02-28 00:47:03.714  val13\n4  2024-02-27 00:47:03.714  val14\n5  2024-03-12 00:47:03.714   val0\n6  2024-03-11 00:47:03.714   val1\n7  2024-03-10 00:47:03.714   val2\n8  2024-03-09 00:47:03.714   val3\n9  2024-03-08 00:47:03.714   val4\n10 2024-03-07 00:47:03.714   val5\n11 2024-03-06 00:47:03.714   val6\n12 2024-03-05 00:47:03.714   val7\n13 2024-03-04 00:47:03.714   val8\n14 2024-03-03 00:47:03.714   val9<\/code><\/pre>\n<\/div>\n<p>\u3053\u3053\u306b\u3042\u308b\u3088\u3046\u306b\u30012024\u5e743\u670812\u65e5\u304b\u3089\u958b\u59cb\u3057\u300120\u65e5\u524d\u306e\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\uff08\u5358\u7d14\u306afor\u30eb\u30fc\u30d7\u3067\u300120\u306b\u9054\u3059\u308b\u307e\u30671\u65e5\u305a\u3064\u6e1b\u7b97\u3057\u3066\u3044\u307e\u3059\uff09\u3002\u671f\u9650\u5207\u308c\u30eb\u30fc\u30eb\u304c\u306a\u3051\u308c\u3070\u3001pandas\u306e\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306b\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3060\u3068\u304d\u306b20\u884c\u306e\u30c7\u30fc\u30bf\u304c\u51fa\u529b\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u304c\u3001\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001\u3082\u3061\u308d\u3093\u3001\u3044\u304f\u3064\u304b\u306e\u884c\u306e\u30c7\u30fc\u30bf\u306f\u671f\u9650\u5207\u308c\u3068\u306a\u308a\u3001\u4ee3\u308f\u308a\u306b15\u884c\u304c\u6b8b\u308a\u307e\u3059\u3002\u3053\u306e\u7406\u7531\u306f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30eb\u30fc\u30eb\u304b\u3089\u308f\u304b\u308a\u307e\u3059\u3002CLI\u3067<code>showcontainer<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">gs[public]> showcontainer pyIntPart\nDatabase    : public\nName        : pyIntPart\nType        : COLLECTION\nPartition ID: 15\nDataAffinity: -\nPartitioned : true\nPartition Type           : INTERVAL\nPartition Column         : date\nPartition Interval Value : 5\nPartition Interval Unit  : DAY\nExpiration Type      : PARTITION\nExpiration Time      : 10\nExpiration Time Unit : DAY\n\nColumns:\nNo  Name                  Type            CSTR  RowKey\n------------------------------------------------------------------------------\n 0  date                  TIMESTAMP(3)    NN    [RowKey]\n 1  value                 STRING                \n\nIndexes:\nName        : \nType        : TREE\nColumns:\nNo  Name                  \n--------------------------\n 0  date<\/code><\/pre>\n<\/div>\n<p>\u3064\u307e\u308a\u300102\/27\u304b\u308903\/12\u307e\u3067\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u30013\u3064\u306e\u7570\u306a\u308b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u307e\u305f\u304c\u3063\u3066\u3044\u307e\u3059\u3002 <\/p>\n<table>\n<thead>\n<tr>\n<th>date<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2024-03-08 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-09 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-10 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-11 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-12 00:47:03.714<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u305d\u3057\u3066<\/p>\n<table>\n<thead>\n<tr>\n<th>date<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2024-03-03 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-04 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-05 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-06 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-07 00:47:03.714<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u5f8c\u306b<\/p>\n<table>\n<thead>\n<tr>\n<th>date<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2024-02-27 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-02-28 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-02-29 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-01 00:47:03.714<\/td>\n<\/tr>\n<tr>\n<td>2024-03-02 00:47:03.714<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>02\/21\u304b\u308902\/26\u307e\u3067\u306e\u65e5\u6570\u5206\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u3082\u30461\u3064\u3042\u308b\u304c\u300110\u65e5\u524d\u306f03\/01\u306a\u306e\u3067\u3001\u6700\u5f8c\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u306f\u3059\u3079\u3066\u6709\u52b9\u671f\u9650\u5916\u306b\u306a\u308a\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5168\u4f53\u304c\u691c\u7d22\u3067\u304d\u306a\u304f\u306a\u308a\u3001\u524a\u9664\u3055\u308c\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u901a\u3057\u3066\u3001\u671f\u9650\u5207\u308c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u306e\u304b\u3092\u8aac\u660e\u3057\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u306e\u304b\u3092Python\u3092\u4f7f\u3063\u305f\u30c7\u30e2\u3067\u793a\u3057\u307e\u3057\u305f\u3002\u671f\u9650\u5207\u308c\u30eb\u30fc\u30eb\u3092\u5f04\u3063\u3066\u307f\u3066\u3001\u3055\u3089\u306b\u3069\u3046\u52d5\u304f\u304b\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB\u306e\u671f\u9650\u5207\u308c\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u9032\u3081\u308b\u3068\u3001\u30d1\u30fc\u30c6\u30a3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49679,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/griddb-partitioning-and-expiry\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/griddb-partitioning-and-expiry\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-15T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:56:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.griddb.net\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1170\" \/>\n\t<meta property=\"og:image:height\" content=\"709\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Israel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Israel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/\"},\"author\":{\"name\":\"Israel\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\"},\"headline\":\"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c\",\"datePublished\":\"2024-05-15T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:56:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/\"},\"wordCount\":126,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/\",\"name\":\"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png\",\"datePublished\":\"2024-05-15T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:56:43+00:00\",\"description\":\"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png\",\"contentUrl\":\"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png\",\"width\":1170,\"height\":709},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.griddb.net\/en\/#website\",\"url\":\"https:\/\/www.griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/www.griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\",\"name\":\"Israel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"caption\":\"Israel\"},\"url\":\"https:\/\/www.griddb.net\/ja\/author\/israel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT","description":"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/griddb-partitioning-and-expiry\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT","og_description":"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/griddb-partitioning-and-expiry\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2024-05-15T07:00:00+00:00","article_modified_time":"2025-11-14T15:56:43+00:00","og_image":[{"width":1170,"height":709,"url":"https:\/\/www.griddb.net\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png","type":"image\/png"}],"author":"Israel","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Israel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/"},"author":{"name":"Israel","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740"},"headline":"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c","datePublished":"2024-05-15T07:00:00+00:00","dateModified":"2025-11-14T15:56:43+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/"},"wordCount":126,"commentCount":0,"publisher":{"@id":"https:\/\/www.griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/","name":"GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u671f\u9650\u5207\u308c | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/www.griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png","datePublished":"2024-05-15T07:00:00+00:00","dateModified":"2025-11-14T15:56:43+00:00","description":"\u671f\u9650\u5207\u308c\u30ea\u30ea\u30fc\u30b9\u3092\u542b\u3080\u30eb\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b9\u30ea\u30e0\u3067\u8efd\u5feb\u306b\u4fdd\u3064\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GridDB\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u6a5f\u80fd\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u3064\u3044\u305fGridDB","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/griddb-partitioning-and-expiry\/#primaryimage","url":"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png","contentUrl":"\/wp-content\/uploads\/2024\/05\/func_partitioning_interval.png","width":1170,"height":709},{"@type":"WebSite","@id":"https:\/\/www.griddb.net\/en\/#website","url":"https:\/\/www.griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/www.griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/www.griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/www.griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740","name":"Israel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","caption":"Israel"},"url":"https:\/\/www.griddb.net\/ja\/author\/israel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50900"}],"version-history":[{"count":1,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50900\/revisions"}],"predecessor-version":[{"id":51721,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50900\/revisions\/51721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media\/49679"}],"wp:attachment":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}