mbennett-uoe / librarytools Goto Github PK
View Code? Open in Web Editor NEWA collection of tools for a collection of library purposes
A collection of tools for a collection of library purposes
If the first result after a sleep is found in the cache, the query hit counter obviously won't be upgraded and so the rate limiter triggers again.
Possible fixes:
Add a flag and some new logic
This is slowing us down quite a lot, because each duplicate object counts as a hit towards the rate limiter, even though no OCLC query is made, meaning that in a set of 500 records with 250 duplicates, the longer sleep will get triggered twice instead of once
This might be useful for stuff matched with non-exact matching, as it could be used to filter rows that got a large number of hits and checking that the retrieved data is accurate.
Use vprint function to expose data about search process etc
Maybe scaling based on response time?
Was triggering on first loop due to index being 0 and 0 mod 250 = 0. Adding +1 to index has stopped it triggering at all.
Maybe need to explicitly declare the changed index, i.e is it trying to eval "index + (1 % 250) == 0" instead of "(index+1) % 250 == 0"?
Maybe only on the longer sleep, but this would be a good insurance policy against a crash midway through processing a large file.
When -f flag is used, it would be nice to give the user the chance to change the fields or add ones the script couldn't find.
csv.DictWriter seems to be ignoring the order of fields in the list that is passed to it. List order is correct in the supplied argument.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.