mediachain / concat

Mediachain daemons
MIT License
42 stars 13 forks source link

Remote merges #30

Closed vyzo closed 7 years ago

vyzo commented 7 years ago

Adds support for merging remote datasets, by virtue of a statement select query, exposed through the /merge endpoint. Closes #25

Example:

$ curl -H "Content-Type: application/text" -d 'SELECT COUNT(id) FROM *' http://127.0.0.1:9004/query
0
$ curl -H "Content-Type: application/text" -d 'SELECT * FROM * LIMIT 5' http://127.0.0.1:9004/merge/QmWwnVop4hHB3K6z2vuUgU9rh5VrDwMnwuiP9LZew7NzUK
5
$ curl -H "Content-Type: application/text" -d 'SELECT * FROM * LIMIT 10' http://127.0.0.1:9004/merge/QmWwnVop4hHB3K6z2vuUgU9rh5VrDwMnwuiP9LZew7NzUK
5
$ curl -H "Content-Type: application/text" -d 'SELECT * FROM * LIMIT 11' http://127.0.0.1:9004/merge/QmWwnVop4hHB3K6z2vuUgU9rh5VrDwMnwuiP9LZew7NzUK
1
$ curl -H "Content-Type: application/text" -d 'SELECT COUNT(id) FROM *' http://127.0.0.1:9004/query
11
parkan commented 7 years ago

:+1: