Comments (5)
This is a good point... But I can explain why it's 10000 in two aspects
- The 10000 inserted rows are treated as 10000 independent data, and those duplicates can be seen as "update" to the previous one
- The dedup process is done on reading. Those 10000 rows are persisted to file in actual.
from greptimedb.
One possible reason is duplicated rows. Our DB will automatically remove duplication (iff time index + primary key are the same) on read.
from greptimedb.
One possible reason is duplicated rows. Our DB will automatically remove duplication (iff time index + primary key are the same) on read.
Yes, but the affected rows in response SHOULD NOT be 10,000, it SHOULD BE the actual affected number of rows
from greptimedb.
It's not recommended to rely on the value of affected rows. Sometimes it's hard to get the correct affected rows (e.g. DELETE). We return it because some SQL protocols need this.
In your case, rows with the same key are actually inserted twice and the row being overwritten is also "affected". Since our INSERT
operation is actually a PUT
operation in some NoSQL dbs.
To see whether an insert request is executed successfully, checking the response code is enough.
from greptimedb.
This is not a bug, but a workaround solution, and DO NOT rely on the affected row.
from greptimedb.
Related Issues (20)
- Supports InfluxQL
- Execute `create database` in procedure HOT 5
- Enable `LeaderCachedKvStore` for meta server
- Correct the behaviors in KvBackend implements
- Add tests for `KvBackend` trait implements
- "created_on" in table info is set to UTC time 0
- create_or_open should always set writable flag HOT 2
- Enhance sqlness harness to accept a connection string
- Remove `InactiveRegionManager`
- Add more sqlness case for special characters in identifier
- Introduce the Readonly flag in `TableRouteValue` HOT 1
- Refactor heartbeat to contains region role
- Remove redundant `try_flush` invoking HOT 1
- Avoid buffering all rows for the same primary key in merge reader
- S3 EntityTooSmall error in flush/compaction HOT 5
- Support `trunc` function for python script
- Offer an HTTP service for query table metadata
- Reduce the `PAGE_SIZE` if the response size reaches limitation of grpc message
- Support Decimal128 type for datatype system HOT 4
- Tracking issue for Region Migration
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 greptimedb.