Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ol-book-info.sql 582 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  1. --- #dep ol-index
  2. -- Extract book information from OpenLibrary
  3. --- #step Extract edition titles
  4. CREATE MATERIALIZED VIEW IF NOT EXISTS ol.edition_title
  5. AS SELECT edition_id, edition_data->>'title' AS title
  6. FROM ol.edition;
  7. CREATE INDEX IF NOT EXISTS ol_edition_title_idx ON ol.edition_title (edition_id);
  8. ANALYZE ol.edition_title;
  9. --- #step Extract work titles
  10. CREATE MATERIALIZED VIEW IF NOT EXISTS ol.work_title
  11. AS SELECT work_id, work_data->>'title' AS title
  12. FROM ol.work;
  13. CREATE INDEX IF NOT EXISTS ol_work_title_idx ON ol.work_title (work_id);
  14. ANALYZE ol.work_title;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...