经过一些研究后,我发现一个项目(表中的一行)的最大大小为 400 KB。
研究来源:
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-items
我想要插入包含超过 1 MB 大小的文本数据。这基本上是一行数据。
例如,
我有一个名为users其中包含summary用户的表。
摘要是一个文本字段(字符串),我想插入超过 1 MB 的数据。但 Dynamo DB 只允许 400 KB。
注意
我无法将其存储在文件中并保留指针
我正在尝试使用inspect获取python打印的源代码,但它抛出错误。有人可以告诉我如何获取python2.7打印语句的源代码。
inspect.getsourcefile(print)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-85-6158f5314751> in <module>()
----> 1 inspect.getsourcefile(print)
/usr/lib/python3.4/inspect.py in getsourcefile(object)
569 Return None if no way can be identified to get the source.
570 """
--> 571 filename = getfile(object)
572 all_bytecode_suffixes = importlib.machinery.DEBUG_BYTECODE_SUFFIXES[:]
573 all_bytecode_suffixes += importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES[:]
/usr/lib/python3.4/inspect.py in getfile(object)
534 return object.co_filename
535 raise TypeError('{!r} is not a module, class, method, '
--> 536 'function, traceback, frame, or code object'.format(object))
537
538 ModuleInfo = namedtuple('ModuleInfo', 'name suffix mode module_type')
TypeError: …Run Code Online (Sandbox Code Playgroud)