Search code examples
javascriptdatabaseextjsextjs4extjs4.2

ExtJS populate store from multiple proxy sources


I have a distributed database system and I want my EXTJS app to request data from multiple sources and put it into a single store. Is there a way to define multiple proxy urls for a single store? Is the best way to accomplish this to make multiple stores and merge them before the data is needed?


Solution

  • In my opinion best way to aggregate data from multiple sources is aggregate it on your backend and return with help one endpoint.

    Extjs does not support multiple proxy. But you can create as many stores as you have sources, and collect all data in one memory store. But in this case you lose many features, where help you work with remote proxy store