fishbone

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Overview

Package fishbone automatically rewrites the behavior based on KeysOnly + Get by Key when Run or GetAll Query, contributing to reducing the amount of charge. If you use Run or GetAll with Query, you will be charged for Small Operations + Entity Reads as you retrieve all Entities from Datastore. We decompose this automatically, set it to KeysOnly and get Entity from cache in Run or GetAll method.

Why fishbone?

https://www.google.co.jp/search?q=%E9%AD%9A%E3%81%AE%E9%A3%9F%E3%81%B9%E6%96%B9+%E8%83%8C%E9%AA%A8&tbm=isch

Recommend: don't use this middleware in production. You should implement KeysOnly + GetMulti strategy in YOUR application. Because, SingleGet is executed every time when Iterator#Next called. It's too slow even memcache access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() datastore.Middleware

New fishbone middleware creates and returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL