{"id":41494,"date":"2008-05-06T13:57:10","date_gmt":"2008-05-06T20:57:10","guid":{"rendered":"https:\/\/redfindevelop.wpengine.com\/blog\/devblog\/2008\/05\/fun_with_generate_series.html"},"modified":"2020-10-05T13:12:47","modified_gmt":"2020-10-05T20:12:47","slug":"fun_with_generate_series","status":"publish","type":"post","link":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/","title":{"rendered":"Fun with generate_series"},"content":{"rendered":"<p>A few months ago I attended the <a href=\"http:\/\/www.postgresqlconference.org\/2007\/talks\/\">PostgreSQL conference in Portland, OR<\/a>.  There were a lot of talks ranging from hard-core stuff like <a href=\"http:\/\/www.advogato.org\/person\/nconway\/diary.html\">Neil Conway<\/a>&#8216;s talk about the internals of query execution, to random fun stuff like <a href=\"http:\/\/www.fetter.org\/\">David Fetter<\/a>&#8216;s discussion of procedural languages, including <a href=\"http:\/\/lolcode.com\/\">LOLCODE<\/a>.<\/p>\n<p><a href=\"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg\" title=\"gulakuno.jpg\"><img decoding=\"async\" src=\"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg\" alt=\"gulakuno.jpg\" \/><\/a><\/p>\n<p>During their talks, a few people mentioned a handy function called generate_series.  It took me a while to discover how useful this function really is.  I thought I&#8217;d post an example.  Here goes&#8230;<\/p>\n<p>Let&#8217;s say that you have a table with sales information:<\/p>\n<pre>\npostgres=# select * from sales order by date;\n    date    | sales_person | part_number\n------------+--------------+-------------\n 2008-05-05 | Glenn        |           1\n 2008-05-05 | Shahaf       |           1\n 2008-05-06 | Mike         |           1\n 2008-05-06 | Mike         |           2\n 2008-05-08 | Glenn        |           1\n 2008-05-08 | Shahaf       |           1\n 2008-05-08 | Mike         |           2\n 2008-05-09 | Mike         |           1\n 2008-05-09 | Glenn        |           1\n(9 rows)<\/pre>\n<p>You might want to get an idea of how many sales happened on each day.  You could try to do it with a query like this:<\/p>\n<pre>\npostgres=# select date, count(*) from sales group by date order by date;\n    date    | count\n------------+-------\n 2008-05-05 |     2\n 2008-05-06 |     2\n 2008-05-08 |     3\n 2008-05-09 |     2\n(4 rows)<\/pre>\n<p>This basically works, but it hides one important fact &#8212; no sales happened on May 7.<\/p>\n<p>To fix this, we can use generate_series.  When you run this function normally, it just generates a series of numbers:<\/p>\n<pre>\npostgres=# select generate_series(0,4);\ngenerate_series\n-----------------\n0\n1\n2\n3\n4\n(5 rows)<\/pre>\n<p>However, you can easily change it to generate a series of dates:<\/p>\n<pre>\npostgres=# select generate_series(0,4) + date '2008-05-05' as date;\ndate\n------------\n2008-05-05\n2008-05-06\n2008-05-07\n2008-05-08\n2008-05-09\n(5 rows)<\/pre>\n<p>Once you have this, you can now join against the sales table to generate the report:<\/p>\n<pre>\npostgres=# select series.date, count(sales.date)<\/pre>\n<pre>from (select generate_series(0,4) + date '2008-05-05' as date) as series<\/pre>\n<pre>left outer join sales on series.date=sales.date group by series.date<\/pre>\n<pre>order by series.date;\n    date    | count\n------------+-------\n 2008-05-05 |     2\n 2008-05-06 |     2\n 2008-05-07 |     0\n 2008-05-08 |     3\n 2008-05-09 |     2\n(5 rows)<\/pre>\n<p>The trick here is to do a left-outer join betwee the date sequence and the sales, and to count the rows that have a non-null sales date.<\/p>\n<p>This is by no means the only use of generate_series, it&#8217;s just the most recent use I found.  If you know of other ways to use this function, or if you know of other handy functions, drop a note below.<\/p>\n<p>Image credits: <a href=\"http:\/\/blog.seattlepi.nwsource.com\/electricvehicleguide\/archives\/138036.asp\">Electric Vehicle Guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few months ago I attended the PostgreSQL conference in Portland, OR. There were a lot of talks ranging from hard-core stuff like Neil Conway&#8216;s talk about the internals of query execution, to random fun stuff like David Fetter&#8216;s discussion of procedural languages, including LOLCODE. During their talks, a few people mentioned a handy function [&hellip;]<\/p>\n","protected":false},"author":13478,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[57],"tags":[],"dashboard":[],"coauthors":[],"class_list":["post-41494","post","type-post","status-publish","format-standard","hentry","category-company-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.7 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Fun with generate_series - Redfin Real Estate News<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fun with generate_series\" \/>\n<meta property=\"og:description\" content=\"A few months ago I attended the PostgreSQL conference in Portland, OR. There were a lot of talks ranging from hard-core stuff like Neil Conway&#8216;s talk about the internals of query execution, to random fun stuff like David Fetter&#8216;s discussion of procedural languages, including LOLCODE. During their talks, a few people mentioned a handy function [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/\" \/>\n<meta property=\"og:site_name\" content=\"Redfin Real Estate News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/redfin\" \/>\n<meta property=\"article:published_time\" content=\"2008-05-06T20:57:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-05T20:12:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg\" \/>\n<meta name=\"author\" content=\"Shahaf Abileah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@redfin\" \/>\n<meta name=\"twitter:site\" content=\"@redfin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shahaf Abileah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/\"},\"author\":{\"name\":\"Shahaf Abileah\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/603fb52f159bd91f911df1e786fee6ba\"},\"headline\":\"Fun with generate_series\",\"datePublished\":\"2008-05-06T20:57:10+00:00\",\"dateModified\":\"2020-10-05T20:12:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/\"},\"wordCount\":261,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/redfin.com\\\/blog\\\/devblog\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2008\\\/05\\\/gulakuno.jpg\",\"articleSection\":[\"Company News\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#respond\"]}],\"copyrightYear\":\"2008\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/\",\"name\":\"Fun with generate_series - Redfin Real Estate News\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/redfin.com\\\/blog\\\/devblog\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2008\\\/05\\\/gulakuno.jpg\",\"datePublished\":\"2008-05-06T20:57:10+00:00\",\"dateModified\":\"2020-10-05T20:12:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#primaryimage\",\"url\":\"https:\\\/\\\/redfin.com\\\/blog\\\/devblog\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2008\\\/05\\\/gulakuno.jpg\",\"contentUrl\":\"https:\\\/\\\/redfin.com\\\/blog\\\/devblog\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2008\\\/05\\\/gulakuno.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/fun_with_generate_series\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.redfin.com/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fun with generate_series\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"name\":\"Redfin Real Estate News\",\"description\":\"The latest real estate news and research from technology-powered residential real estate company, Redfin.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.redfin.com/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\",\"name\":\"Redfin\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"width\":1100,\"height\":235,\"caption\":\"Redfin\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/redfin\",\"https:\\\/\\\/x.com\\\/redfin\",\"https:\\\/\\\/www.instagram.com\\\/redfinrealestate\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/redfin\",\"https:\\\/\\\/www.pinterest.com\\\/redfin\\\/\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Redfin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/603fb52f159bd91f911df1e786fee6ba\",\"name\":\"Shahaf Abileah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpgb98d1f204d143aab6d4240c534a1657e\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpg\",\"caption\":\"Shahaf Abileah\"},\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/author\\\/shahaf-abileahredfin-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fun with generate_series - Redfin Real Estate News","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:\/\/www.redfin.com\/news\/fun_with_generate_series\/","og_locale":"en_US","og_type":"article","og_title":"Fun with generate_series","og_description":"A few months ago I attended the PostgreSQL conference in Portland, OR. There were a lot of talks ranging from hard-core stuff like Neil Conway&#8216;s talk about the internals of query execution, to random fun stuff like David Fetter&#8216;s discussion of procedural languages, including LOLCODE. During their talks, a few people mentioned a handy function [&hellip;]","og_url":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/","og_site_name":"Redfin Real Estate News","article_publisher":"https:\/\/www.facebook.com\/redfin","article_published_time":"2008-05-06T20:57:10+00:00","article_modified_time":"2020-10-05T20:12:47+00:00","og_image":[{"url":"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg","type":"","width":"","height":""}],"author":"Shahaf Abileah","twitter_card":"summary_large_image","twitter_creator":"@redfin","twitter_site":"@redfin","twitter_misc":{"Written by":"Shahaf Abileah","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#article","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/"},"author":{"name":"Shahaf Abileah","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/603fb52f159bd91f911df1e786fee6ba"},"headline":"Fun with generate_series","datePublished":"2008-05-06T20:57:10+00:00","dateModified":"2020-10-05T20:12:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/"},"wordCount":261,"commentCount":0,"publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"image":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#primaryimage"},"thumbnailUrl":"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg","articleSection":["Company News"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#respond"]}],"copyrightYear":"2008","copyrightHolder":{"@id":"https:\/\/www.redfin.com\/news\/#organization"}},{"@type":"WebPage","@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/","url":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/","name":"Fun with generate_series - Redfin Real Estate News","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#primaryimage"},"image":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#primaryimage"},"thumbnailUrl":"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg","datePublished":"2008-05-06T20:57:10+00:00","dateModified":"2020-10-05T20:12:47+00:00","breadcrumb":{"@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redfin.com\/news\/fun_with_generate_series\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#primaryimage","url":"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg","contentUrl":"https:\/\/redfin.com\/blog\/devblog\/wp-content\/uploads\/sites\/3\/2008\/05\/gulakuno.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.redfin.com\/news\/fun_with_generate_series\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redfin.com\/news\/"},{"@type":"ListItem","position":2,"name":"Fun with generate_series"}]},{"@type":"WebSite","@id":"https:\/\/www.redfin.com\/news\/#website","url":"https:\/\/www.redfin.com\/news\/","name":"Redfin Real Estate News","description":"The latest real estate news and research from technology-powered residential real estate company, Redfin.","publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redfin.com\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redfin.com\/news\/#organization","name":"Redfin","url":"https:\/\/www.redfin.com\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","width":1100,"height":235,"caption":"Redfin"},"image":{"@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/redfin","https:\/\/x.com\/redfin","https:\/\/www.instagram.com\/redfinrealestate\/","https:\/\/www.linkedin.com\/company\/redfin","https:\/\/www.pinterest.com\/redfin\/","https:\/\/en.wikipedia.org\/wiki\/Redfin"]},{"@type":"Person","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/603fb52f159bd91f911df1e786fee6ba","name":"Shahaf Abileah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpgb98d1f204d143aab6d4240c534a1657e","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpg","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpg","caption":"Shahaf Abileah"},"url":"https:\/\/www.redfin.com\/news\/author\/shahaf-abileahredfin-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/41494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/users\/13478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/comments?post=41494"}],"version-history":[{"count":0,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/41494\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/media?parent=41494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/categories?post=41494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/tags?post=41494"},{"taxonomy":"dashboard","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/dashboard?post=41494"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/coauthors?post=41494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}