<?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>10027</bug_id>
          
          <creation_ts>2010-06-28 20:56:13 +0000</creation_ts>
          <short_desc>Remove explicit add/remove functions from IDBIndex</short_desc>
          <delta_ts>2010-10-25 18:12:19 +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>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="Nikunj Mehta">nikunj.mehta</assigned_to>
          <cc>jorlow</cc>
    
    <cc>mike</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>36450</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-06-28 20:56:13 +0000</bug_when>
    <thetext>The spec currently allows entries to be manually added and removed from indexes. While this is one solution to the problem of indexing on computed values, it&apos;s not one that seems very popular.

There are currently a few other proposals that have been made for example [1] and [2].

Until we figure out how to do more complex indexes, I propose we remove the add/put/remove functions from IDBIndex. Similarly I propose that calling update() on a cursor opened using IDBIndex.openCursor is not allowed.

[1] http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/1094.html
[2] http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/0882.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36452</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-06-29 05:02:38 +0000</bug_when>
    <thetext>Agreed.  Explicitly managed indexes add a lot of surface area and offer nothing that can&apos;t be easily emulated with an objectStore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36758</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-07-10 21:52:43 +0000</bug_when>
    <thetext>When fixing this, we should decide what to do when IDBCursor.update and IDBCursor.remove does when called on a cursor created using IDBIndex.openCursor.

We could either make the functions throw, or make them perform specified change to the objectStore entry that the cursor is referencing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41736</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-25 18:12:19 +0000</bug_when>
    <thetext>Fixed: http://dvcs.w3.org/hg/IndexedDB/rev/c2618f86a774</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>