Closed pritborteam closed 4 months ago
Could you try setting connection_timeout_seconds
in the typesense
section in scout config file to say 900?
Could you try setting
connection_timeout_seconds
in thetypesense
section in scout config file to say 900?
This does not solve the problem. But when try cleaning using php artisan cache:clear This does the job well.
But I have below scenarios for issue and its very evident it is something to do with cache:-
Scenario: 1
Scenario: 2
Scenario: 3
Scenario: 4
Observation: The issue will be always visible when you run the Scout Import for the first time. The only way to solve it is to first run the Scout Import once, let it fail and then run artisan clear cache and then run Scout Import again. This is not great.
BTW i use Redis for cache. But I was using this even in Laravel10 and had no issue.
Hi @pritborteam. Looks like you found a solution to your issue so I'm going to close this one. I don't feel we need to take action right now because we only have one report for this, sorry.
Hi @pritborteam. Looks like you found a solution to your issue so I'm going to close this one. I don't feel we need to take action right now because we only have one report for this, sorry.
But this issue is evident. Why do I need to clear the cache only after every first failure? Clearing the cache before even issue is seen is not working.
This issue is also seen when you completely clear all database and run seeder again.
I'll take a loot into this
I'm also seeing this issue when my database seeders run. There's no issue when I try to import:
I'm also seeing this issue when my database seeders run. There's no issue when I try to import:
To see the issue in Scout Import, try having dataset more than 500 if your batch import size of 500. if fails in second iterationa. In seed, i guess it is one file each but in Scout Import it is batch import. Resolution is only after first failure cache clear.
Scout Version
^10.8
Scout Driver
Typesense
Laravel Version
11.4.0
PHP Version
8.3
Database Driver & Version
MariaDB-10.11.7
SDK Version
0.26
Meilisearch CLI Version
No response
Description
I had no issue with import/flush with latest laravel Scout with Laravel 10.X and using typesense v.0.26. Post migration to Laravel 11.X, I am unable to import large data using scout:import command for typesense. After indexing first 500 documents, it says my collection with the index name already exists. Issue is not visible with small data less than 500.![scout-error](https://github.com/laravel/scout/assets/91776549/cc763d75-7adb-4cbe-b3c5-1899029a6ecd)
Steps To Reproduce