Comments (3)
valya: Related, how we should handle swap of data when existing data are still in cache. There are two scenarios:
- new data is identical to one in a cache, action: change timestamp
- new data is different from one in a cache.
This issue can be critical for expensive data requests, get all blocks/datasets.
from das.
valya: Hi Gordon,
instead of email I put it to trac. Somehow I don't get email updates, so we need to include CC for tickets.
I thought about atomic update of newly retrieved records from DAS robot with existing records presented in db. Here is the proposal:
- add new field das.ahead for all records
- if query hash not found in DB, das.ahead=0 and all records just added to DB otherwise
add new field das.ahead=1 to all records and insert them as usual - at this step we will have 2 copy of data, one with das.ahead=0 and visible to users
and another with das.ahead=1 which can be used by das web to not show such records
- if query hash not found in DB, das.ahead=0 and all records just added to DB otherwise
- once we ready to perform a swap
- perform records removal for the same query hash && das.ahead=0
- perform atomic update (find in mongo docs) of records with given query hash and das.ahead=1
- change das.ahead to 0 during this operation.
This will require to add das.ahead field and also some manipulation in mongocache code for both DAS cache and DAS merge collections.
Please let me know what do you think,
V.
from das.
valya: I don't think this use case is valid anymore, therefore closing the ticket. Will re-open if use case will show up again.
from das.
Related Issues (20)
- pagination links do not remember DBS instance in DAS2GO HOT 3
- Handling of large run range queries HOT 4
- Duplicate entries in JSON output HOT 2
- Perform final migration of DAS python server to DAS go server HOT 3
- Display of Fraction of Datasets with invalid Files HOT 20
- Given a block name and a run number, query for file names HOT 2
- status filter not working HOT 3
- 'plain' option sometimes misbehaves HOT 3
- DAS not found but by "crab status" it exists HOT 2
- Config files not available from the Configs link in web queries HOT 7
- Error="invalid character 'p' after array element" HOT 14
- "DAS query guide" link points to nowhere HOT 1
- finding the file that contains a run,lumi is not working HOT 6
- error=invalid character '<' looking for beginning of value" HOT 2
- for results format = list, total number of entries is not correct HOT 1
- panic: runtime error from dasgoclient HOT 2
- Turn on Rucio requests from DAS by default HOT 1
- Explore data consistency checking between Rucio and PhEDEx HOT 3
- Remove Rucio-Account header from command line version of DAS HOT 2
- Remove PhEDEx from default list of services to query 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 das.