-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objects not returned from S3Store.query() #786
Comments
Every object that is in your bucket needs to have an entry in the index store that contains its |
Thank you for the quick reply! That is not the case here. I created an index MemoryStore and S3Store without making any updates. I took a look at the s3store fixture and I see what you mean. I've updated my example script pasted below and I can now see the S3Store is finding my existing document in S3:
outputs:
I think I'm starting to understand why we need an index, which isn't obvious when doing a simple example like this. The use case I'm working towards is where I have a MongoDB of documents that have a blob that I want to store in S3. If I'm understanding it correctly, the MongoDB is the index in this case which essentially points to the blobs that are stored in the S3 bucket. Am I thinking about this correctly? |
@xperrylinn, sorry for the late reply. Yes, you are thinking about it correctly. |
Howdy,
I'm learning how to use the S3Store and I've written an example script pictured below to test it out.
The issue that I'm facing is that when I call
S3Store.query(criteria=None)
on a bucket that has a document namedhello_world.txt
, nothing is returned. I've stepped through the source code with a debugger and I can confirm the S3 bucket has the document inside of it, however, when the source code queries the S3Store it passes the query to the S3Store's index and finds nothing.I think I'm missing something about how the index attribute of the S3Store works. How do I understand what is happening here?
The text was updated successfully, but these errors were encountered: