Skip to content

Instantly share code, notes, and snippets.

@hungryzi
Created January 24, 2013 01:56
Show Gist options
  • Save hungryzi/4616977 to your computer and use it in GitHub Desktop.
Save hungryzi/4616977 to your computer and use it in GitHub Desktop.
Indices for naive modelling
@schema = IndexedDBBackbone.describe('experiment1')
.createStore('catalog_items', keyPath: 'id')
.createStore('inventory_items', keyPath: 'id')
.createIndex('inventory_items', 'queryIndex', ['location_id', 'catalog_item.serialized', 'catalog_item.category_id'], unique: false)
.createIndex('inventory_items', 'catalogItemIndex', 'catalog_item_id', unique: false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment