Comments (1)
I'm cross-posting this from the message group in case it's more useful here.
I don't believe the problem is isolated to DELETE or SPARQL. I am evaluating 4store as a graph database, and I made a python script that generates 15,600 triples and POSTs them to 4store in Turtle format. I first create a graph with 6 triples, then I append to it (POST) in various ways as a test:
- Join the turtle triples with newlines, and send one request with a graph.
- Send each individual triple with a new HTTP connection and request.
- Reuse HTTP connections, but still do a separate POST for each triple.
Results:
Took 0.71 seconds to batch import 15600 triples
Took 400.48 seconds to concurrent import 15600 triples
Took 271.22 seconds to concurrent import 15600 triples, reusing connections
In cases 2 & 3, 4s-httpd is using 95% CPU the entire time. Since I want to use 4store as a graph database for an application, my usage model will be closest to the 3rd scenario (lots of one-shot requests with a single triple). The performance overhead with the separate requests is astounding; hopefully there's a low-hanging-fruit bug to fix it.
EDIT:
I should mention I'm on a 2010 Macbook Air running the default configuration of 4store, and I used 10 concurrent threads (actually greenlets) to do the POSTing in cases 2 and 3.
from 4store.
Related Issues (20)
- Backend segfault when importing data with v1.1.6 HOT 6
- Website 4store.org offline HOT 31
- autogen.sh doesn't work on OS X HOT 10
- HAVING clause HOT 3
- Dockerfile HOT 2
- Update README
- Add Travis build config
- Move the project under 4store organisation HOT 3
- Add proper installation instructions for Debian or CentOS and macOS HOT 1
- Travis build tests fail HOT 1
- Add mailing list instructions to README HOT 5
- Support SPARQL queries and updates via POST directly
- `installcheck` not aware of may be non-updated `PATH`
- Tutorial HOT 2
- N-Quads / Multiple graphs HOT 2
- What is a segment? HOT 4
- Query to list graphs doesn't work HOT 3
- Unknown IO error - Not a valid HTTP URI HOT 5
- Check 4store info via SPARQL HOT 2
- ¡resource not found! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 4store.