text: Answered: Ext.Direct not combining requests
  Answered: Ext.Direct not combining requests
  I have a store with the proxy setup like this:
  Code:
  proxy: { type: 'direct', api: { create : Test.Projects.create, read : Test.Projects.read, update : Test.Projects.update, destroy : Test.Projects.destroy } }
  Code:
  Ext.ns("Test.app"); Test.app.REMOTING_API = { "url":"php\/router.php", "type":"remoting", "enableBuffer":5000, "actions":{ "Projects":[ {"name":"create","len":1}, {"name":"read","len":1}, {"name":"update","len":1}, {"name":"delete","params":null} ]}, "namespace":"Test" };
  Code:
  store.add( {name: 'Added Project from main_store'} ); store.getAt(0).set('name', 'Project 1 updated'); store.sync();
  Any idea what am i missing?
  Thank you
  I think the problem is that i am using Ext.data.Store in combination with a direct proxy.
  There is a special class called Ext.data.DirectStore that i think should be used for this store
  I think the problem is that i am using Ext.data.Store in combination with a direct proxy.
  There is a special class called Ext.data.DirectStore that i think should be used for this store
  Looked at DirectStore and there is nothing there to suggest that it would combine requests so using DirectStore does not solve the original issue
  The issue is rooted deep in the code
  When you do .sync() on a store, it creates a Ext.data.Batch object to which it adds Ext.data.Operation objects and they are executed in "synchronous" mode.
  Ext.data.Operation object have a setting called synchronous to which (in theory) the batch object should look and decide if to wait for the current operation to be executed before running the next one, but this setting is ignored.
  In conclusion, to be able to send create/update/delete requests grouped together with Ext.Direct two things need to happen
  1) fix Ext.data.Batch to obey "synchronous" setting of a operation
  3) have a setting on the (server) store telling it to batch the operation in synchronous/asynchronous mode