Storage of multiple (~10000) SVG fill patterns


Storage of multiple (~10000) SVG fill patterns



I am converting a web service from plain HTML/ASP.NET to D3/ASP.NET. I need about 10000 different constant fill patterns with about 50 different ones (from the 10000) on a single web page depending on user requests. With HTML, all these patterns were small 20x20px png files in a directory and were only loaded by filename when requested by the page. With D3, I could make a huge 'defs' file with 10000 SVG 'patterns' but it would require to be loaded every time. Any suggestions on how to store these patterns efficiently ? Thanks.
Jacques





Are the groups of 50 patterns logically grouped, so they could be put in separate files? Or are they ad-hoc so you don't know ahead of time which will be required?
– SteveR
Jun 30 at 14:07





generate the pattern on demand
– Robert Longson
Jun 30 at 14:11





The database stores ~250000 items grouped in ~10000 classes (one pattern for each class). The requested page shows symbolic maps of hundreds of items which classes can be identified using the patterns. These patterns cannot be generated on demand because they need to be consistent between requests and between users.These are genetic maps of different organisms and gene conservation is assessed using the patterns.
– jacques
Jun 30 at 15:01





load them on demand via ajax then.
– Robert Longson
Jun 30 at 15:39









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

How to input without newline? (Python)

C++ thread error: no type named ‘type’ MINGW

Analog for TagView in flutter