Title: PostgresOnlineStore: Improve materialization · Issue #4309 · feast-dev/feast · GitHub
Open Graph Title: PostgresOnlineStore: Improve materialization · Issue #4309 · feast-dev/feast
X Title: PostgresOnlineStore: Improve materialization · Issue #4309 · feast-dev/feast
Description: Is your feature request related to a problem? Please describe. The current implementation of PostgreSQLOnlineStoreConfig.online_write_batch() is quite slow. Describe the solution you'd like One of the suggested options discussed in this ...
Open Graph Description: Is your feature request related to a problem? Please describe. The current implementation of PostgreSQLOnlineStoreConfig.online_write_batch() is quite slow. Describe the solution you'd like One of ...
X Description: Is your feature request related to a problem? Please describe. The current implementation of PostgreSQLOnlineStoreConfig.online_write_batch() is quite slow. Describe the solution you'd like One...
Opengraph URL: https://github.com/feast-dev/feast/issues/4309
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PostgresOnlineStore: Improve materialization","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nThe current implementation of `PostgreSQLOnlineStoreConfig.online_write_batch()` is quite slow. \r\n\r\n**Describe the solution you'd like**\r\nOne of the suggested options discussed [in this issue](https://github.com/feast-dev/feast/issues/4036) is using [bulk writes](https://github.com/apache/arrow-adbc/pull/1093) with [adbc](https://arrow.apache.org/adbc/main/driver/postgresql.html). \r\n\r\n**Describe alternatives you've considered**\r\nAnother option could be to use `COPY FROM` command. This [performance benchmark](https://www.timescale.com/blog/psycopg2-vs-psycopg3-performance-benchmark/) shows that the number of rows written per second is significantly larger compared to the batch insert we are doing now. \r\n\r\nThis image shows the comparison from the performance benchmark: \r\n\u003cimg width=\"607\" alt=\"Screenshot 2024-06-24 at 11 48 25\" src=\"https://github.com/feast-dev/feast/assets/55230856/c5976c8c-93c2-484a-89b1-8fd42acfbf9a\"\u003e\r\n\r\n**Additional context**\r\nI think we should benchmark both solutions and pick the one that achieves the best performance.\r\n","author":{"url":"https://github.com/job-almekinders","@type":"Person","name":"job-almekinders"},"datePublished":"2024-06-24T09:34:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/4309/feast/issues/4309"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:96b46500-d771-fe1e-6aec-d3abc29efaa1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CFA:27E5F5:A7A158:EBB1F9:696F4623 |
| html-safe-nonce | 28e13c22106334dfce0a29448cb6868b4e190f72d61b929ac142fb14a3aae63f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0ZBOjI3RTVGNTpBN0ExNTg6RUJCMUY5OjY5NkY0NjIzIiwidmlzaXRvcl9pZCI6IjQ2MTMzOTc4OTEwODEyNTg1MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2163da766724ce786ac959f6332c8991b3398c0e00c4d98270e90b7339fd147f |
| hovercard-subject-tag | issue:2369730367 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/4309/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49d53e2428bb415e6273a271a962b7344cb72eb1bc58850c66c38dc78a1aab41/feast-dev/feast/issues/4309 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49d53e2428bb415e6273a271a962b7344cb72eb1bc58850c66c38dc78a1aab41/feast-dev/feast/issues/4309 |
| og:image:alt | Is your feature request related to a problem? Please describe. The current implementation of PostgreSQLOnlineStoreConfig.online_write_batch() is quite slow. Describe the solution you'd like One of ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | job-almekinders |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width