<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11350</bug_id>
          
          <creation_ts>2010-11-19 12:05:25 +0000</creation_ts>
          <short_desc>[IndexedDB] ObjectStores should have a way to hint that they&apos;re &quot;evictable&quot;</short_desc>
          <delta_ts>2015-04-23 16:03:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>11398</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="Jeremy Orlow">jorlow</assigned_to>
          <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>pablo.castro</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42636</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-11-19 12:05:25 +0000</bug_when>
    <thetext>At TPAC, we talked about whether we should make some way for web apps to tell the UA that data is not critical.  Many uses for IndexedDB are such that it&apos;s not a big deal if data is discarded, but there are some use cases where it&apos;s critical.  For example, the archive of your email for all time might not be critical, but the email you wrote while offline that still hasn&apos;t gotten a chance to send yet is.

We discussed what the proper granularity is.  Per record seems very difficult to implement efficiently.  Per database means that you can&apos;t have transactions that involve both both classes of data.  So we decided to make it per-objectStore.

createObjectStore&apos;s optional parameters will turn into a single optional options object that gets passed in.  So, for example, you would do .createObjectStore(&quot;name&quot;, {autoIncrement: true, keyPath: &quot;id&quot;}); to create an objectStore with an autoIncrement number stored in the id keyPath and the name of &quot;name&quot;.

We&apos;ll then add another parameter to the optional options object parameter that is &quot;evictable&quot; which states whether or not the browser can get rid of the data at its discretion.  This will default to false.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42776</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-11-25 14:47:31 +0000</bug_when>
    <thetext>storeNames should probably be renamed to objectStoreNames for consistency/clarity too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49296</commentid>
    <comment_count>2</comment_count>
    <who name="Pablo Castro">pablo.castro</who>
    <bug_when>2011-06-08 00:13:13 +0000</bug_when>
    <thetext>Based on this [1] thread it looks like we all think we should have some sort of evictable store mechanism but that we could add that later on after we land an initial version of the spec.

Resolving this as &quot;LATER&quot;.

[1] http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0935.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119817</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-04-23 16:03:08 +0000</bug_when>
    <thetext>LATER -&gt; WONTFIX

In discussions with implementers, this seems to be the wrong direction. See https://wiki.whatwg.org/wiki/Storage for some more recent thoughts.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>