im using Angular8, my problem is: i have a table which sends a request to my server to get the records, at the moment the server just "SELECT * from TABLE" and return the whole data at once.
problem is now that "TABLE" is very big and it takes time to load the table.
i want to make a first call to the server and "SELECT * from TABLE limit 1000" and then execute another call and load the rest of the data. but i can't find how its possible to return only one observable and "stream" the results..
the table component looks like this:
this.apiService.loadTable().subscribe(data => { this.source.load(data) })
(where this.source.load is a function of ngx-smart-table)
i want that the loadTable function will update the data when one of the request finishes.. how can i accomplish that? i didn't find how i can take different http requests and emit their results on a single observable object..
thanks!