Posts

Showing posts from December 20, 2018

Rails Active_storage ActiveStorage::IntegrityError on test

Image
0 On a rails 5.2, I save a canvas as blob and send it on azur storage via Active storage. On my machine, with development environnement, png is created perfectly and perfectly send to the azur blob and I get it attach to the model. But on the Test machine ( with test environnement) I get a ActiveStorage::IntegrityError when I attach the blob to the image. the javascript that send the png var project_id = 2; var csrf_token = $("meta[name=csrf-token]").attr("content"); var project_metadata = new FormData(); project_metadata.append("utf8","✓"); project_metadata.append("authenticity_token",csrf_token); project_metadata.append("projet_id",project_id.toString()); project_metadata.append("commit","Create Projet"); var file_name = "rdc.png"; var upload_file_field = that.drawing.getElement().toBlob(function(blob) var file = new File([blob], file_name, type: "image/png", las...

ラムネ (清涼飲料)

Image
ラムネ ラムネ は、日本で広く愛飲される清涼飲料水である。名称は lemonade (レモネード)の転訛が由来。アルコールを含まない無色透明の炭酸飲料としては、日本ではサイダーの呼称が使われることが多いが、ラムネは一般に(無色透明であるかに関わらず)「玉詰びんに詰められ...

Cloud Firestore limit 8 millions writes per day on single document

Image
0 Many realtime apps have documents that act as counters. For example, you might count 'likes' on a post, or the number of visits of a video. According to my calculations using cloud firestore this value can not grow more than 8 millions per day With Cloud Firestore and Distributed counter I can have (at most) : 1 write/second * 100 == 100 writes per second. 1 day = 86.400 seconds 86.400 * 100 = 8.640.000 ( 100 : Limit maximum depth of subcollections) How can this limit be exceeded for an application with many users? Thanks you firebase firebase-realtime-database google-cloud-firestore share | improve this question asked Nov 12 at 9:33 John 22 5 You can also take a look at the last part of my answer from this post . – Alex Mamo Nov 12 at 16:35 add a comment  |  0 Many realtime apps have documents that act as counters. For example, you might count 'likes' on a post, or the number of visits o...